This code inserts a hyperlink in the active cell.
VBA Code:
Sub InsertHyperlink()
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:="http://www.example.com", _
TextToDisplay:="Link"
End Sub
This code inserts a hyperlink in the active cell.
VBA Code:
Sub InsertHyperlink()
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:="http://www.example.com", _
TextToDisplay:="Link"
End Sub