I've found the following which will do what I want:
Code:
Private Sub Run_Click()
Dim Inet1
Dim b() As Byte
Dim intCount As Integer
Dim strData As String
Inet1.Cancel ' Stops any current operations
b() = Inet1.OpenURL("http://www.vbsquare.com/index.html", icByteArray)
For intCount = 0 To UBound(b) - 1
strData = strData & Chr(b(intCount))
Next intCount
MsgBox strData
End Sub
but when I try to run this I get the error "Object Required" the first time I make reference to Inet1
do I have to 'construct' the Inet object??
(and yes I did check Microsoft Internet Controls in Components)
ideas?
thanks!