Hi.
I am trying to read a website into a variable so I can run parsing scripts.
I am using:
Dim Web As New SHDocVw.InternetExplorer
Dim Doc As New MSHTML.HTMLDocument
Web.Navigate "http:// website "
Set Doc = Web.Document
(I have references and instances of the following classes installed on my form)
- Microsoft Internet Controls (shdocvw.dll)
- Microsoft HTML Object Library (MSHTML.TLB)
When I run the above code, I get an Automation Error for the last line.
There doesnt seem to be much info around on this error.
What am I doing wrong ???
The code is lifted straight from tutorial examples!
Help appreciated.
Thanks
Phil.
I am trying to read a website into a variable so I can run parsing scripts.
I am using:
Dim Web As New SHDocVw.InternetExplorer
Dim Doc As New MSHTML.HTMLDocument
Web.Navigate "http:// website "
Set Doc = Web.Document
(I have references and instances of the following classes installed on my form)
- Microsoft Internet Controls (shdocvw.dll)
- Microsoft HTML Object Library (MSHTML.TLB)
When I run the above code, I get an Automation Error for the last line.
There doesnt seem to be much info around on this error.
What am I doing wrong ???
The code is lifted straight from tutorial examples!
Help appreciated.
Thanks
Phil.