LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default How do I force a browser based excel hyperlink to open a new w

Hi Sean,

The only thing I can think of is to use the FollowHyperlink event to trap
the click on the hyperlink. To do this, however, would force the "enable
macros?" popup, which you may not want.

If you don't care about that, you can do as follows:

1) In cell B10, change the formula to =Z10.

2) Right-click B10 and select Hyperlink. Click the "Place in This Document"
button on the left, select Sheet1, and type B10 in the cell reference box.

3) Right-click the worksheet tab at the bottom of the screen and paste the
following into the resulting code pane:

Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
ThisWorkbook.FollowHyperlink Address:="http://bigcharts." & _
"marke****ch.com/quickchart/quickchart.asp?symb=" & _
UCase$(Target.Parent.Value), NewWindow:=True
End Sub

4) Follow steps 1-3 for each hyperlink.

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]


sq246 wrote:
Ron

Sorry that doesn't work! If you go to www.regentfinancial.net and
select the page tiltled The Market Scan Report and then click on the
link to see an example market scan report you will have an excel file
open. Within that file are hyperlinks, clicking on any of those
hyperlinks causes the excel file to try to close. I need to find a
way of making those hyperlinks open a new window rather than try to
close excel to go to the link URL.

Sean

"Ron de Bruin" wrote:

Hi Sean

Try Shift -Click

--
Regards Ron de Bruin
http://www.rondebruin.nl



"sq246" wrote in message
...
Hi

I am using Excel from Office 2003. I am uploading an excel file to
a website so the .xls file opens in a browser window. The excel
file contains hyperlinks. When teh user clicks on the hyperlinks,
they try to open in the same window, thereby shutting down the
excel programme - how can I force the hyperlink to open a new
browser window?

Urgent help needed!!

Thanks

Sean




 
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
Can an exl hyperlink be set up to open a new browser to the link? badpenny Excel Discussion (Misc queries) 1 August 20th 07 07:55 PM
excel can not open on some IE browser Faiz Excel Discussion (Misc queries) 3 July 20th 06 01:29 PM
Drag file from browser into Excel to create hyperlink. GJJ Excel Discussion (Misc queries) 0 June 7th 06 04:33 PM
Launch new browser window from hyperlink within Excel Hal Anderson Excel Worksheet Functions 0 December 1st 05 11:17 PM
How do I force a hyperlink in a spreadsheet to open a new window? sq246 Excel Worksheet Functions 0 November 18th 04 10:53 PM


All times are GMT +1. The time now is 11:52 AM.

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"