How do I create a hyperlink with a macro?
Hope this helps... You can paste link copied from clipboard into an inputbox...
Sub add_hyperlink()
Dim hl As String
hl = InputBox("Copy link he")
If Len(hl) = 0 Then Exit Sub
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:= _
"http://www.microsoft.com", ScreenTip:="Goto Microsoft's site", _
TextToDisplay:="Microsoft"
End Sub
--
Regards,
Anant
"jimmulv3" wrote:
Hello,
I am attempting to create a spread sheet for work that is as easy to use as
possible. My goal is to create a macro that adds a hyperlink to a particular
cell. The catch is, I would like the URL to come from the clipboard. This way
all they need to do is copy the address and run the macro. Is this possible?
|