Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 03-16-2015, 05:22 AM
gmayor's Avatar
gmayor gmayor is offline Creating internal hyperlink that highlights specific text within a word doc Windows 7 64bit Creating internal hyperlink that highlights specific text within a word doc Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,144
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

You could make the text the display text of a macrobutton field and use that to run a macro to highlight the bookmarked text. Format the field with the Hyperlink character style

{ MACROBUTTON MacroName Highlight the linked text }

Code:
Sub MacroName()
         ActiveDocument.Bookmarks("bmLink").Range.Select
End Sub
Otherwise the normal behaviour for a hyperlink is to go to the linked text. If that works for you, bookmark the text and create a link to that bookmark name. Clicking the link takes you to the start of the bookmarked text.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating internal hyperlink that highlights specific text within a word doc Creating a list of all text in a specific style ljd108 Word VBA 15 10-09-2014 02:35 AM
Creating internal hyperlink that highlights specific text within a word doc Need tips for creating a specific word format DomDom Word 5 09-24-2014 01:24 AM
Creating internal hyperlink that highlights specific text within a word doc Hyperlink to specific TOC entry sidbiffel Word 1 07-06-2012 05:25 PM
Creating internal hyperlink that highlights specific text within a word doc Using Hyperlink to open Word Document at Specific Header rossi45 Word 2 05-04-2012 06:03 PM
Creating internal hyperlink that highlights specific text within a word doc Specific Hyperlink dextrousdave Word 1 01-16-2012 09:10 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:22 PM.


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