Hello,I'm trying to follow this faq 705-7299 ( refering to a former faq ( using Access 2007
This is about reading the url source of a web page into a textstring in vba. I'm not an expert in class modules, so I just did, as I was told in the thread, creating the classmodule etc.When I now try to run it, i.e. by putting the following code behind a button:
Private Sub Command330_Click()
Dim internet As rwInetXfer
Dim sText As String Debug.Print "HTML SOURCE-"
sText = internet.OpenUrl("End Sub
... the execution stops, with "Object variable or with block variable not set". Again, no expert here. I suspect one of two reasons: I need to set a reference library to be included in Tools/References, but I don't know which ....
or I need to
Set internet = ...something
but I don't know what. Can somebody help or suggest another way of doing this?
Many thanks
Jan
This is about reading the url source of a web page into a textstring in vba. I'm not an expert in class modules, so I just did, as I was told in the thread, creating the classmodule etc.When I now try to run it, i.e. by putting the following code behind a button:
Private Sub Command330_Click()
Dim internet As rwInetXfer
Dim sText As String Debug.Print "HTML SOURCE-"
sText = internet.OpenUrl("End Sub
... the execution stops, with "Object variable or with block variable not set". Again, no expert here. I suspect one of two reasons: I need to set a reference library to be included in Tools/References, but I don't know which ....
or I need to
Set internet = ...something
but I don't know what. Can somebody help or suggest another way of doing this?
Many thanks
Jan