Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
KJM
 
Posts: n/a
Default Hyperlink to another row broken if inserting new row between, Help

I created a sheet with hyperlinks to other cells in different rows that point
hyperlink and it works well. Problem is that if I add new rows between the
two rows, the hyperlink for the lower numbered row is off by 1 row less than
hyperlink it orginally pointed to. I use Excel 2000.

Does newer versions of Excel have the smarts to do what normal linking does?
Is there a VBA script that can relink my broken links based on a column with
a common number to each row? I dont want to have to write this if it already
exists.

Thanks in advance.
KJM
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

It depends on a few things...

How did you create the hyperlink?
Is that cell in the hyperlink in a worksheet in the same workbook?
If it's a different workbook, is that other workbook open?

If you used insert|hyperlink (no matter what the other answers are), I think the
easiest solution would be to name that range that your link points to
(Insert|name|define). Then use that name when you create the hyperlink.

If you used the =hyperlink() worksheet formula and you're staying within the
same workbook (or that other workbook is open), then you can use this kind of
formula (from a David McRitchie post):

=HYPERLINK("#"&CELL("address",C5),C5)
=HYPERLINK("#"&CELL("address",sheetone!C5),sheeton e!C5)
=HYPERLINK("#"&CELL("address",'sheet two'!C5),'sheet two'!C5)

If the link points to another workbook and that other workbook is closed, then
use a range name in the worksheet function, too.



KJM wrote:

I created a sheet with hyperlinks to other cells in different rows that point
hyperlink and it works well. Problem is that if I add new rows between the
two rows, the hyperlink for the lower numbered row is off by 1 row less than
hyperlink it orginally pointed to. I use Excel 2000.

Does newer versions of Excel have the smarts to do what normal linking does?
Is there a VBA script that can relink my broken links based on a column with
a common number to each row? I dont want to have to write this if it already
exists.

Thanks in advance.
KJM


--

Dave Peterson
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
Importing Data from an Access Database Including a Hyperlink Colum B.C.Lioness Excel Discussion (Misc queries) 0 May 16th 05 05:26 PM
Importing Access File with Hyperlink B.C.Lioness Excel Discussion (Misc queries) 0 April 29th 05 10:13 PM
Inserting a hyperlink with "Data Filter" on, in Excel Bamff Excel Discussion (Misc queries) 3 March 16th 05 01:53 AM
How can a hyperlink be opened by pressing Enter. Carolina Excel Discussion (Misc queries) 2 February 17th 05 03:09 PM
Removing hyperlink Frank Marousek Excel Discussion (Misc queries) 3 January 12th 05 09:53 PM


All times are GMT +1. The time now is 12:36 AM.

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

About Us

"It's about Microsoft Excel"