Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A Way wto make HYPERLINK work within workbook 1

Status
Not open for further replies.

Cresby

Programmer
Joined
Aug 15, 2002
Messages
287
Location
GB
write a macro thus
Function apppath() As String
apppath = "[" & ActiveWorkbook.FullName & "]"
End Function

cell formulae in the hyperlink cells are
=HYPERLINK(apppath() & "sheetname" & "!A1","legend")

"sheetname" can be an INDEX or INDIRECT computation.
"legend" is whatever text you want to be visible

This was necessary so I could give the xls away and it is not pre-ordained where it will be stored on the HDD (or wherever)
It does recalculate whenever the cursor hovers over the cells containing it but I tried other options and this was the best for many reason - I didn't want an Auto_Open macro.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top