Force IE, not Netscape, to open hyperlink

GMBJames

New Member
Joined
Aug 21, 2002
Messages
22
Hello all,
I'm using excel 2000 and I've added a hyperlink in one cell to launch a specific webpage. I would like to force IE to open the link no matter what the default web browser may be. (I would change the settings on my own personal computer but, several other people will be using this file and I simply cannot go to everyone's desk and set IE as the default browser).
Or alternatively, is there a way using VBA to set IE as the default browser?
Thanks for any help.
Jamie
This message was edited by GMBJames on 2002-10-11 08:35
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hey,

I don't know how you can set the default browser, but you can change the hyperlink into a button a run the following code


Public Sub GotoWebpage_Click()
Dim EXP

Set EXP = CreateObject("InternetExplorer.application")
EXP.Visible = True
'put the webpage here
EXP.Navigate ("http://www.mrexcel.com")
End Sub

HopeThishelps,
Krupa
 
Upvote 0
Why not just use the shell command...

Code:
Shell "Explorer ""www.mrexcel.com""",vbMaximizedFocus
 
Upvote 0
I cant use the shell command because the length of the site im using is too long so it is getting cut off
 
Upvote 0
Hi. I saw this subject (actually I searched for it) and was VERY excited.

I've had this (similar) problem personally for a long time. I've tried to fix it (even just for me) but with no luck.

My problem is that when I use =Hyperlink(what, "label") it works, but it invokes Netscape. It doesn't do it very gracefully and thus I'd like to have IE be my default.

Actually IE IS my default browser, so I'm confused. If I launch Windows Explorer and find a .html or a .htm file and double click to launch it, IE launches. Thus little ole' me would think that IE IS my default browser for .html or .htm web pages. Thus I'm confused as to why Excel wants to apparently look elsewhere for figuring out my preference WRT browsers.

Thanks in advance for any help!
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,246
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top