First have the hyperlink point to a cell. When the jump is made to the cell,
use an Event to trigger the macro:
In A1 enter:
=HYPERLINK("#sheet1!Z100","leap")
and in worksheet code have something like:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Intersect(Target, Range("Z100")) Is Nothing Then
Exit Sub
End If
MsgBox ("hello")
End Sub
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.