Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Followhyperlink using specific web browser


Hi,

I've created a form with a button that when pushed opens internet
explorer and pulls up a specific web address using the followhyperlink
method. Is there some code I could add to use Netscape 4.7 instead of
Internet Explorer ?

Thank you :)

Oreg


--
Oreg
------------------------------------------------------------------------
Oreg's Profile: http://www.excelforum.com/member.php...fo&userid=9195
View this thread: http://www.excelforum.com/showthread...hreadid=476643

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 162
Default Followhyperlink using specific web browser

You could use the Shell() function, but you would have to know the path
of the Netscape executable on each system.

----
Nick Hebb
BreezeTree Software
http://www.breezetree.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Followhyperlink using specific web browser


Can't seem to figure this out. Does anyone have any suggestions ?

Thanks,

Oreg


--
Oreg
------------------------------------------------------------------------
Oreg's Profile: http://www.excelforum.com/member.php...fo&userid=9195
View this thread: http://www.excelforum.com/showthread...hreadid=476643

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Followhyperlink using specific web browser


Hi Nick,

Thanks for the direction. Netscape is located on a shared drive where
I work where everyone can access at the same location - F:\Program
Files\Netscape\Communicator\Program\netscape.exe. Could you show me
how I could use the Shell () function to do this? That is if I provided
the right info.

Thanks

Oreg


--
Oreg
------------------------------------------------------------------------
Oreg's Profile: http://www.excelforum.com/member.php...fo&userid=9195
View this thread: http://www.excelforum.com/showthread...hreadid=476643

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 162
Default Followhyperlink using specific web browser

Oreg,

Here's some sample code:

Dim sPath As String
Dim sURL As String
Dim dTaskID As Double

sPath = "c:\program files\mozilla firefox\firefox.exe" 'my browser
sURL = "http://www.breezetree.com" 'shameless plug

dTaskID = Shell(sPath & " " & sURL, vbNormalFocus)

If dTaskID = 0 Then
MsgBox "Could not open browser"
End If


The key part for you will be determining the path of the netscape.exe
program. If everyone has the shared drive mapped to "F:" then it's no
problem, but most likely you'll need to get the UNC path for the drive.

The UNC would look like:
\\Server Name\Program Files\Netscape\Communicator\Program\netscape.exe

Where "Server Name" is the name of the shared drive. Also note that I
didn't use the follow_hyperlink event. You can just the put code in the
button's click event.

HTH,

Nick Hebb
BreezeTree Software
http://www.breezetree.com



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Followhyperlink using specific web browser


Nick,


This is perfect!!!!!!! Thanks so much for the help...It work
perfectly !!! :) :)

Ore

--
Ore
-----------------------------------------------------------------------
Oreg's Profile: http://www.excelforum.com/member.php...nfo&userid=919
View this thread: http://www.excelforum.com/showthread.php?threadid=47664

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
FollowHyperlink to OLEObject Tony Excel Programming 0 January 5th 05 10:15 PM
Display HTML help file using FollowHyperlink; want browser to have Focus L Mehl Excel Programming 4 June 8th 04 04:56 AM
FollowHyperlink Mike Archer[_3_] Excel Programming 0 December 19th 03 12:26 PM
followhyperlink Mike Archer[_2_] Excel Programming 0 December 18th 03 03:19 PM
followhyperlink failure Ron Dahl Excel Programming 2 November 4th 03 02:51 PM


All times are GMT +1. The time now is 07:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"