Hello!
Is it possible to add a link anchor from UDF?
I have a code:
Why does it not work?
Thank you in advance!
Is it possible to add a link anchor from UDF?
I have a code:
Code:
Function ActivateLinks(url As String)Dim linkAddr As String
linkAddr = "g5"
HyperLink url, linkAddr
End Function
Sub HyperLink(ByVal link As String, ByVal addr As String)
ActiveSheet.Hyperlinks.Add Anchor:=Range(addr), Address:=link
End Sub
Thank you in advance!