having trouble locking hyperlinks in excel

C

Chatnoir

Hi all. I have a workbook with multiple worksheets. I have hyperlinks between
the first worksheet and others in the book, just using the cell reference (eg
E4). The problem I have is when I add a row, the links are messed up.

I tried naming the cells I'm linking to, but then the links didn't work at
all.
Any ideas?
 
G

Gary''s Student

A formula like:

=HYPERLINK("#Sheet2!I14","go")

will lock to the absolute address. So if you add rows before row 4, it will
always go to the fourth row. However:

The following uses the HYPERLINK() function to goto Sheet3 cell Z100:

=HYPERLINK("#"&CELL("address",Sheet3!Z100),"target")

This link will "adjust". So if you add or remove rows above Z100, the
formula will adjust!
 
D

Dave Peterson

If you used insert|Hyperlink, then you should try using the named range again.
It should work ok.
 
C

Chatnoir

I understand that #Sheet2 is the worksheet name, but in teh next example what
do #"&CELL mean?

(I'll try the first one now.. since I kinda get it. :-}
 
C

Chatnoir

Gary's 2nd method worked for me. Thanks! I'll try Dave's too - it looks a
little easier.Appreciate the great help.
 
D

Dave Peterson

Actually, if I were doing this with lots and lots of hyperlinks, I'd use Gary's
second suggestion, too.

I think the =hyperlink() worksheet function is better behaved.
Gary's 2nd method worked for me. Thanks! I'll try Dave's too - it looks a
little easier.Appreciate the great help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top