Last active
May 11, 2018 10:28
-
-
Save allenk/b901f3fb27ad4e1c1b96f398657c1905 to your computer and use it in GitHub Desktop.
The Excel VBA to Open Hyperlinks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub OpenSelectLinks() | |
' | |
' Allen, | |
' Open Links with Selections | |
' | |
With Selection.Interior | |
For Each Hyperlink In Selection.Hyperlinks | |
Hyperlink.Follow NewWindow:=False, AddHistory:=True | |
'Hyperlink.Range.Interior.Color = vbRed ' Change Interior Color | |
Hyperlink.Range.Font.Color = vbRed ' Change Font Color | |
Next | |
End With | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment