I know how to get Word and Excel objects, but what is the object reference to get Internet Explorer?
Printable View
I know how to get Word and Excel objects, but what is the object reference to get Internet Explorer?
Hi,
Go to project properties and click on components. There check the internet controls
That's all.
Thanks
karun
To get the Excel application I use:
Set XLobj = GetObject("Excel.Application")
What do you use as the handle for Internet Explorer? Also, does ZOrder work with Internet Explorer?
anyone? anyone? Bueller?
Sure thing. Add a reference to Microsoft Internet Controls (DLL's name: shdocvw.dll), the try something like this:
------------------Code:Private Sub Command1_Click()
Dim ie As New SHDocVw.InternetExplorer
ie.Navigate "www.microsoft.com"
ie.Visible = True
End Sub
Serge
Senior Programmer Analyst
[email protected]
[email protected]
ICQ#: 51055819
Private brwWebBrowser As VBControlExtender
Private Sub Form_Load()
'
On Error GoTo NO_IE
Set brwWebBrowser = frmBrowser.Controls.Add("Shell.Explorer", "wcIE")
brwWebBrowser.Visible = True
NO_IE:
End Sub
'then use like this
private sub cmdGoNow_Click()
brwWebBrowser.object.Navigate "http://www.vbworld.com"
end sub