Skip to content

Instantly share code, notes, and snippets.

@jonschoning
Created August 16, 2011 14:31
Show Gist options
  • Save jonschoning/1149218 to your computer and use it in GitHub Desktop.
Save jonschoning/1149218 to your computer and use it in GitHub Desktop.
ShowAddress.bas
Attribute VB_Name = "ShowAddress"
Public Function ShowAddress(rng As Range) As String
If rng.Cells.Count > 1 Then
ShowAddress = CVErr(xlErrValue)
Else
ShowAddress = rng.Hyperlinks.Item(1).Address
End If
End Function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment