Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I add hyperlink in Active X Option Button macro

Status
Not open for further replies.

YACHTIE

Technical User
Feb 17, 2004
77
CA
Sorry, but I am relatively new to this VBA macro business and would like to have a hyperlink activated with clicking of the "option button click() sub"
Is this possible and how do I go about this?
I have a Word form with several functions built in and in the button click macro I would like to have a hyperlink activated to open another Word document form.

thanks
 
You do not need a hyperlink to do that. Just have the click event open the other document.

Code:
Sub OptionButton1_Click()
If OptionButton1.Value = True Then
    Documents.Open FileName:="[i]Path | Name[/i]"
End If
End Sub



Gerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top