Hi, its a little hard to visualize what you are pressing and if your pressing it on a form or a worksheet, so a little more info would go a long way.
but for now, you can check a range if it contains hyperlinks and act accordingly
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Hyperlinks.Count > 0 Then
MsgBox "Has Hyperlink"
End If
End Sub
this maybe useful in your case but it would be better if you can send more information clearly describing the process you code it going through.
Thanks
Bookmarks