Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automation Error !

Status
Not open for further replies.

dolphin99

Programmer
Jan 18, 2004
12
AU
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.

 
This may not help at all but I had problems with automation errors and some of my vb6 apps running with Access. I had to download and install the Microsoft MDAC 2.8 patch and they ran fine after that. Again, this may not help at all for your instance I am not sure.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top