|
-
September 28th, 2001, 06:48 PM
#1
how do i specify IE's default web site into this sub......
Hi,
At the moment, ie is opening with the site in the code below. What code should I use to get ie to open on the site which is the default home page?
Thanks for any help...
Private Sub mnuBrowser_Click()
Dim lngReturn As Long
lngReturn = Shell("start http://www.msn.co.uk", vbNormalFocus)
End Sub
-
October 5th, 2001, 10:53 PM
#2
Re: how do i specify IE's default web site into this sub......
1) find out what is the dafault browser on the user's machine. It's in Registry here: "HKEY_CLASSES_ROOT\htmlfile\shell\opennew\command"
or here: "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\htmlfile\shell\opennew\command"
2) then just run it
For example on my machine Registry contains this text "C:\Program Files\Internet Explorer\iexplore.exe". So, I do:
lngReturn = Shell("C:\Program Files\Internet Explorer\iexplore.exe", vbNormalFocus)
-
October 5th, 2001, 11:32 PM
#3
Re: how do i specify IE's default web site into this sub......
or you can do this
lngReturn = Shell("C:\Program Files\Internet Explorer\iexplore.exe" http://www.msn.co.uk, vbNormalFocus)
always works for me
midnightservice
-
October 5th, 2001, 11:38 PM
#4
Re: how do i specify IE's default web site into this sub......
sorry i missed typed my earlier string here is the correct string
lnreturn = Shell("c:\program files\internet explorer\iexplore.exe http://www.msn.co.uk", vbNormalFocus)
midnightservice
-
October 6th, 2001, 12:43 PM
#5
Re: how do i specify IE's default web site into this sub......
I think you've missed the problem which is: "Run default browser without providing any URL."
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
|