dynamic hyperlink

leecavturbo

Well-known Member
Joined
Jan 4, 2008
Messages
681
well when i say dynamic. I have a hyperlink ( link ? ) in sheet 2 to a cell in sheet 1. but what i need is when i copy that sheet to make another ( with tab, copy move to end ) is for the link to reference sheet 1 but 1 row lower than the last.
possible without vba ?
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
This should work even if you change your file name:
Excel Formula:
=HYPERLINK(MID(CELL("filename",A1),FIND("[",CELL("filename",A1)),FIND("]",CELL("filename",A1))-FIND("[",CELL("filename",A1))+1)&"Sheet1!$A"&SHEET(),"My Link")
Note: "filename" stays as it is. Do not replace it with your file name.
 
Upvote 1
Excel Formula:
=HYPERLINK("[Book1.xlsx]Sheet1!$A$"&5+SHEET(),"My Link")


This formula will add 1 to row referance after 5th row each time a new sheet is copied.
 
Upvote 0
Solution
Excel Formula:
=HYPERLINK("[Book1.xlsx]Sheet1!$A$"&5+SHEET(),"My Link")


This formula will add 1 to row referance after 5th row each time a new sheet is copied.
Cannot open the specified file. ? yes i changed the book1 to the file name
 
Upvote 0
Maybe you must include the filepath:
Excel Formula:
=HYPERLINK("C:\User\Desktop\[Book1.xlsx]Sheet1!$A$"&5+SHEET(),"My Link")

I haven't tested it like this. You must fiddle around.
 
Upvote 0
Maybe you must include the filepath:
Excel Formula:
=HYPERLINK("C:\User\Desktop\[Book1.xlsx]Sheet1!$A$"&5+SHEET(),"My Link")

I haven't tested it like this. You must fiddle around.
seemingly the simplist of hyperlink doesnt work, even if i insert function hyper link and actually click on the location . the kyperlink is created but doesnt work ! ? eg =HYPERLINK(Sat!I3,"back") Sat being the worksheet in the open book
 
Upvote 0
@Flashbond Ah that works but i notice my books are .xlsm. ( that the difference ? ) i even renamed my book to book5 for simplification and recreated you simple hyperlink ( which is great and perfect in your book ) but i get a 'Cannot open specified file.'
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,480
Messages
6,125,047
Members
449,206
Latest member
Healthydogs

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top