hyperlink - userform

  • Thread starter Thread starter tinybears
  • Start date Start date
T

tinybears

Hey,

Is it possible to put a hyperlink in your userform. I would like to
have, that when a label is clicked, that the user is connected to a
website. Does anyone has a clue?

thx
 
Depending on what you have in the label:

Option Explicit
Private Sub Label1_Click()
ActiveWorkbook.FollowHyperlink "http://" & Me.Label1.Caption
'or
'ActiveWorkbook.FollowHyperlink "http://youraddresshere.com"
End Sub
Private Sub UserForm_Initialize()
Me.Label1.Caption = "WWW.Microsoft.com"
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top