comando_sur
New Member
- Joined
- Sep 6, 2016
- Messages
- 12
In a spreadsheet I'm using shapes to act as buttons, I would like that once clicked go to the location on the correct sheet using a hyperlink and be on the top.
For text I can use the below however for shapes I can't find how to create a hyperlink using a macro.
The code I would need is to set a hyperlink from shape called "shape_total" and show in the top of the spreadsheet the Defined Names (located on Edit hyperlink) : Total_Month
Thanks in advance
For text I can use the below however for shapes I can't find how to create a hyperlink using a macro.
Code:
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
ActiveWindow.ScrollRow = ActiveCell.Row -1
End Sub
The code I would need is to set a hyperlink from shape called "shape_total" and show in the top of the spreadsheet the Defined Names (located on Edit hyperlink) : Total_Month
Thanks in advance