Sarebbe più semplice accedere al file direttamente senza il browser.
Se puoi farlo diventa semplice:
1. Scarichi il file in locale, con la funzione URLDownloadToFile()
http://msdn.microsoft.com/en-us/library/ms775123(VS.85).aspx
codice:
Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long
Public Function DownloadFile(URL As String, LocalFilename As String) As Boolean
Dim lngRetVal As Long
lngRetVal = URLDownloadToFile(0, URL, LocalFilename, 0, 0)
If lngRetVal = 0 Then DownloadFile = True
End Function
DownloadFile ip & "/hp/device/this.LCDispatcher?nav=hp.Supplies", "c:\hp.Supplies"
2. lo apri come un normale file di testo
3. usi le solite funzioni stringa per recuperare il numero