To run a macro from a hyperlink, code below is used.
Cell with hyperlink is named, then right-click, Link, Place in This Document, choose named cell.
It works in workbook with code, why doesn't it work from add-in?
Cell with hyperlink is named, then right-click, Link, Place in This Document, choose named cell.
It works in workbook with code, why doesn't it work from add-in?
VBA Code:
'CODE IN WORKSHEET
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
If Target.Name = Range("named_cell") Then
MsgBox "Clicked"
End If
End Sub