#1
|
|||
|
|||
Replicating Insert Hyperlink-Bookmark function
I have been working on a solution to the issue of the Look in folder defaulting to the same folder regardless of the last selection. The solution I’ve come up with is a userform that replicates the functions of the built-in Insert Hyperlink dialog box (I’m calling it “Insert Hyperlink Plus”). Unlike the built-in, the useform, which is modeless, stays open after creating any number of links, and even allows one to set a directory folder as a default, so it can be easily accessed over different periods of time without having to navigate to it.
The problem I’m having is with the Bookmarks button, which in the built-in displays the headings (in the “Select Place in Document” popup) and, when one is selected, creates a link and a hidden bookmark. If there is more than one heading with the same text, Word recognizes that and creates an identical bookmark made unique by a numeric suffix. And it makes this bookmark at the destination area so it can navigate to it. So there must be a tie-in between the headings displayed in the popup and their location. I’ve been trying to replicate this functionality through VBA to include in the “Insert Hyperlink Plus” function but without success. Is this possible to do with VBA? |
Tags |
bookmark, hyperlink |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Restrict Editing function disable insert textbox function | IanM_01 | Word | 5 | 11-21-2015 02:29 AM |
Clicking a Hyperlink to bookmark in other open doc moves that doc's position! | 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 |
Insert the Hyperlink and hide all sheets except clicking Hyperlink | PRADEEPB270 | Excel | 1 | 02-22-2013 09:47 AM |
VBA to insert Bookmark | rockwellsba | Word VBA | 2 | 05-31-2011 01:07 AM |