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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE AND GET OBJECT

Status
Not open for further replies.

athom

ISP
Joined
Apr 4, 2001
Messages
20
Location
CA
I am trying to use the GetObject Function instead of the CreateObject function because my application supports OLE. I can use the GetObject with Word and Excel because they are the only program that brings up .doc or .xls, but with IE and .html file can be brought up by several classes so I am trying to use GetObject("c:\tmp\test.html","InternetExplorer.Application") and this doesn't work.

Thanks
athom
 
Do this :
1. set IeVar= GetObject ("","InternetExplorer.Application")
2. IeVar.Navigate "c:\tmp\test.html"
3. Ievar.Visible=True

For some reason Internet Explorer does not work if the first argument is not an empty string. This way of calling GetObject is the same as using CreateObject.

Nikita
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top