|
-
Feb 13th, 2000, 09:04 AM
#1
Thread Starter
Hyperactive Member
I know how to get Word and Excel objects, but what is the object reference to get Internet Explorer?
-
Feb 13th, 2000, 09:18 AM
#2
Member
Hi,
Go to project properties and click on components. There check the internet controls
That's all.
Thanks
karun
-
Feb 14th, 2000, 02:12 AM
#3
Thread Starter
Hyperactive Member
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?
-
Feb 16th, 2000, 02:34 AM
#4
Thread Starter
Hyperactive Member
-
Feb 16th, 2000, 05:46 AM
#5
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
-
Feb 16th, 2000, 03:04 PM
#6
Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|