Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Insert Hyperlink at Bookmark
Hi,
Forgive my lack of VBA experience. I'm sure I'm just dealing with a syntax error. I am making a wizard that on document create based on a template, will query the user to enter a bug number via a wizard form. On closing the form, I want to create a hyperlink by concatenating the url to our bug tracker with the bug number they entered. Then, insert that hyperlink at a bookmark of a content control. The bookmark is "BugNum" The text box on the entry form is "BugNumTextBox" Here is my failing VBAcode: Private Sub CommandButton1_Click() With ActiveDocument .Bookmarks("BugNum").Range _ .InsertBefore.Hyperlinks.Add Anchor:=Selection.Range, _ Address:="http://bugs.ourbugtracker.net/show_bug.cgi?id=" & BugNumTextBox End With UserForm1.Hide End Sub |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Add hyperlink/bookmark to each page --- PDF | New Users | |||
The Insert Bookmark box shouldnt vanish after adding a bookmark. | Microsoft Word Help | |||
Hyperlink to previous/next bookmark | Microsoft Word Help | |||
Hyperlink in word to a bookmark in a pdf | Microsoft Word Help | |||
Convert Word hyperlink with bookmark to PDf hyperlink | Microsoft Word Help |