ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   hiperlinks to sheet (dinamic or based on a cell valeu) (https://www.excelbanter.com/excel-programming/273723-hiperlinks-sheet-dinamic-based-cell-valeu.html)

SpeeD[_2_]

hiperlinks to sheet (dinamic or based on a cell valeu)
 
Hi guys.

I have a "central" sheet that contains hiperlinks to all
other sheets in the worrk book.
The other sheet names mau vary from day to day, so i have
to make my hiperlinks "dinamic" or based in value of the
next cell.

Is this possible???

thanks a lot (once again!!!!)

SpeeD

Dick Kusleika

hiperlinks to sheet (dinamic or based on a cell valeu)
 
SpeeD

You can use the Worksheet_FollowHyperlink event. Set up all the hyperlinks
so that the underlying address points to the same cell that holds the
hyperlink. Basically that will cause the hyperlink to do nothing at all.
Then use the event to control what happens when the hyperlink is clicked.
It might look like this

If Target.Range.Column = 1 Then
Me.Parent.Sheets(Target.Range.Offset(0,1).Value).A ctivate
End If

This says that if the hyperlink is in column A, then activate the sheet
whose name is in column B.

--
Dick Kusleika
MVP - Excel
www.dicks-clicks.com
Post all replies to the newsgroup.

"SpeeD" wrote in message
...
Hi guys.

I have a "central" sheet that contains hiperlinks to all
other sheets in the worrk book.
The other sheet names mau vary from day to day, so i have
to make my hiperlinks "dinamic" or based in value of the
next cell.

Is this possible???

thanks a lot (once again!!!!)

SpeeD





All times are GMT +1. The time now is 09:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com