Calling a website and returning
Thanks Andy that does work.
Instead of dropping a hyperlink onto th worksheet, and executing from there, I'd prefer to have it execute directly from the User Form upon clicking on the option. In other works, click and the button and it directly goes to the website, then returns to the user form (same one or next) without having to return to the spreadsheet itself. Make sense?
Pat
»
- Thomas Collins's blog
- Login or register to post comments
- 2698 reads
Thanks, Andy, your tweak
Thanks, Andy, your tweak worked like a charm!! Wow.
Humm... will have to think of something a little tougher for you next time!
Appreciate it!
TC
Try this one Private Sub
Try this one
Private Sub Label1_Click()
Dim Link As String
Link = "http://en.wikipedia.org/wiki/Main_Page"
On Error GoTo NoCanDo
ActiveWorkbook.FollowHyperlink Address:=Link, NewWindow:=True
Exit Sub
NoCanDo:
MsgBox "Cannot open " & Link
End Sub