Insert Hyperlink button

B

Brant

When you go to the properties of a hyperlink box, you are able to browse
for a hyperlink when you click on the button next to hyperlink address.
What I want to be able to do is put a button in my form that opens up
this same window and allows you to browse for the hyperlink. How can
this be done. Thanks in advance
 
A

Allen Browne

The button has focus when you click it, so you need to set focus to the
hyperlink text box, and the use the RunCommand constant to open the insert
hyperlink dialog.

Example:
Me.[YourTextBoxNameHere].SetFocus
RunCommand acCmdInsertHyperlink
 
Top