LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Enz Enz is offline
external usenet poster
 
Posts: 21
Default Hyperlinks issue

Hi Folks,

I have an issue with hyperlinks. I have 2 links that go from one tab
to another tab on in the same file. The code I am using is the
following:

'Create hyperlink to the Cap by tab
Range("B" & loutput2currentRow - 2).Select
ActiveSheet.Hyperlinks.Add Anchor:=Selection,
Address:="", _
SubAddress:="'Cap by Site'!D" & loutputcurrentRow

'Create hyperlink to the Site Info tab
Sheets("Temp Output").Select
Range("D" & loutputcurrentRow).Select
ActiveSheet.Hyperlinks.Add Anchor:=Selection,
Address:="", _
SubAddress:="'Site Info'!A" & loutput2currentRow -
cReportLength

These links used to both work at some point but have made additional
changes to the code, and now for some reason the second one creates a
link with the following characteristics and it no longer works. It
has the characteristics of 'Place in this document', and in the 'type
the cell reference' it contains A1 every time the code is executed
(which is not the correct value based on the content of the variables
of loutput2currentRow and cReportLength).

The first one hyperlink created that still works has the
characteristics of 'External File or Web Page' , 'Current Folder' and
address of: #'Cap by Site'!D2

I think I am overlooking something simple. Can anyone see it? Or if
they have a recommendation to try something else? I have tried a
number of things, all of which don't work.

Thanks & regards,
Enzo

 
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
Hyperlinks: Hyperlinks change on copy/paste? Rick S. Excel Worksheet Functions 0 November 13th 07 08:19 PM
Update 2000 Excel hyperlinks to 2003 hyperlinks lonv155 Excel Worksheet Functions 4 October 25th 07 05:51 AM
How toi turn-off hyperlinks [excel]? Email hyperlinks pop up ! jacob735 Excel Discussion (Misc queries) 1 June 22nd 07 12:57 AM
Excel Hyperlinks- cell content v. hyperlinks herpetafauna Excel Discussion (Misc queries) 2 May 23rd 06 04:39 AM
issue with hyperlinks nerdman Excel Discussion (Misc queries) 1 January 12th 06 03:18 PM


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