Missing reference to IE6 within Word VBA

J

John

Windows XP Professional; Office 2003; Internet Explorer 6

When I look in the reference dialog within Word VBA,
I do not see anything for IE 6.
Do I need to install something to have it appear? or
Does it have a funny name that is not obvious in the references?
Thanks

Dim ieApp As InternetExplorer
Private Sub Test
Set ieApp = CreateObject("InternetExplorer.Application")
Debug.Print ieApp.Version
End Sub
 
J

Jay Freedman

Hi John

According to http://support.microsoft.com/?id=176792:

"To run the following code, it is necessary to add a reference to
"Microsoft Internet Controls" (Shdocvw.dll) and "Microsoft HTML Object
Library" (Mshtml.dll) to the Visual Basic project."

Even with those references, I couldn't get it to cough up a .Version
property, which doesn't appear to be defined in the object model. :-(

Other links that may be useful:
http://www.microsoft.com/mind/0898/dom.asp
http://www.mvps.org/access/modules/mdl0062.htm
http://www.angelfire.com/realm/vb-shared/IEDOM_Tip01.htm
 
J

John

Thank you for the valuable feedback.

John

Jay Freedman said:
Hi John

According to http://support.microsoft.com/?id=176792:

"To run the following code, it is necessary to add a reference to
"Microsoft Internet Controls" (Shdocvw.dll) and "Microsoft HTML Object
Library" (Mshtml.dll) to the Visual Basic project."

Even with those references, I couldn't get it to cough up a .Version
property, which doesn't appear to be defined in the object model. :-(

Other links that may be useful:
http://www.microsoft.com/mind/0898/dom.asp
http://www.mvps.org/access/modules/mdl0062.htm
http://www.angelfire.com/realm/vb-shared/IEDOM_Tip01.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top