I've created a simple macro to open a hyperlink... but if there is no hyperlink in the cell, I want an error message to pop up saying "Please select a hyperlink"
Any help appreciated!
Sub OpenHyperlink()
'
' OpenHyperlink Macro
'
' Keyboard Shortcut: Ctrl+q
'
Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
End Sub
Any help appreciated!

Sub OpenHyperlink()
'
' OpenHyperlink Macro
'
' Keyboard Shortcut: Ctrl+q
'
Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
End Sub