Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-05-2016, 01:27 PM
Marrick13 Marrick13 is offline Replicating Insert Hyperlink-Bookmark function Windows XP Replicating Insert Hyperlink-Bookmark function Office 2010 32bit
Competent Performer
Replicating Insert Hyperlink-Bookmark function
 
Join Date: Jun 2006
Posts: 102
Marrick13 will become famous soon enough
Default 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?
Reply With Quote
Reply

Tags
bookmark, hyperlink



Similar Threads
Thread Thread Starter Forum Replies Last Post
Replicating Insert Hyperlink-Bookmark function Restrict Editing function disable insert textbox function IanM_01 Word 5 11-21-2015 02:29 AM
Replicating Insert Hyperlink-Bookmark function 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
Replicating Insert Hyperlink-Bookmark function Insert the Hyperlink and hide all sheets except clicking Hyperlink PRADEEPB270 Excel 1 02-22-2013 09:47 AM
Replicating Insert Hyperlink-Bookmark function VBA to insert Bookmark rockwellsba Word VBA 2 05-31-2011 01:07 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:16 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft