Example:
=HLINK(A1:A10;FALSE)
Function HLink(rng As Range, Optional RtnSub As Boolean) As String
If rng(1).Hyperlinks.Count Then
If RtnSub = False Then
HLink = rng.Hyperlinks(1).Address
Else
HLink = rng.Hyperlinks(1).SubAddress
End If
End If
End Function
Source: link, subaddress property
=HLINK(A1:A10;FALSE)
Function HLink(rng As Range, Optional RtnSub As Boolean) As String
If rng(1).Hyperlinks.Count Then
If RtnSub = False Then
HLink = rng.Hyperlinks(1).Address
Else
HLink = rng.Hyperlinks(1).SubAddress
End If
End If
End Function
Source: link, subaddress property
Inga kommentarer:
Skicka en kommentar