![]() |
#1
|
|||
|
|||
![]()
I am trying to use the hyperlinks feature in VBA within word, but when I use the following code it is attempting to create the hyperlink as a link to an existing File or Web page. I want the hyperlink to point to a bookmark named link2create below within the current document. I thought using the address = "" would give me the current document but unfortunately it is not.
ActiveDocument.Hyperlinks.Add Anchor:=oRng, _ Address:="", _ SubAddress:=link2create, ScreenTip:="", _ TextToDisplay:=txt2cpy |
Tags |
hyperlink current |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Correct Bookmark Hyperlink | Phil H | Word | 2 | 02-10-2016 12:55 PM |
Replicating Insert Hyperlink-Bookmark function | Marrick13 | Word VBA | 0 | 02-05-2016 01:27 PM |
Hyperlink: open the document only once, quit & reopen PP, hyperlink doesnt work anymore | quanghuynguyenhua | PowerPoint | 0 | 10-10-2015 06:17 PM |
![]() |
diracsbracket | Word | 1 | 08-14-2014 04:07 PM |
How to highlight bookmark after clicking hyperlink | readysteadykitty | Word | 0 | 07-04-2013 10:40 PM |