Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Hyperlink won't work...help please

I can't figure out why this won't work.

Worksheets("sheet1").Hyperlinks.Add Anchor:=LinkLoc, _
Address:="[MacroHolder.xls]Sheet1!A13", _
ScreenTip:="Link to detail", _
TextToDisplay:="Placeholder"

When I click on the hyperlink, an error dialog appears "Cannot open the
specified file."

The file is indeed called MacroHolder.xls and the destination is A13 on
sheet 1.

Thanks in advance.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default Hyperlink won't work...help please

Nikko

The Address will be the workbook name, not braces. The SubAddress will be
the location in the workbook.

Worksheets("Sheet1").Hyperlinks.Add Anchor:=LinkLoc, _
Address:="MacroHolder.xls", _
SubAddress:="Sheet1!A13". _
ScreenTip:="Link to detail", _
TextToDisplay:="Placeholder"

--
Dick Kusleika
MVP - Excel
Excel Blog - Daily Dose of Excel
www.dicks-blog.com

NikkoW wrote:
I can't figure out why this won't work.

Worksheets("sheet1").Hyperlinks.Add Anchor:=LinkLoc, _
Address:="[MacroHolder.xls]Sheet1!A13", _
ScreenTip:="Link to detail", _
TextToDisplay:="Placeholder"

When I click on the hyperlink, an error dialog appears "Cannot open the
specified file."

The file is indeed called MacroHolder.xls and the destination is A13 on
sheet 1.

Thanks in advance.



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
Why hyperlink does not work after been copied to another file? GOH Excel Worksheet Functions 2 September 12th 09 01:38 PM
Hyperlink won't work micksa Excel Discussion (Misc queries) 1 September 25th 08 02:36 PM
Can't make hyperlink function work for hyperlink to website Frank B Denman Excel Worksheet Functions 15 February 5th 07 11:01 PM
Hyperlink doesn't work - need a macro.... BeSmart[_2_] Excel Programming 3 April 16th 04 08:43 AM
Hyperlink Code will not work in XL2002 rozb Excel Programming 1 April 10th 04 01:45 PM


All times are GMT +1. The time now is 05:51 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"