Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 04-08-2023, 12:38 AM
gmayor's Avatar
gmayor gmayor is offline Add hyperlinks to specific font style Windows 10 Add hyperlinks to specific font style Office 2019
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 just need to add the font settings in question to the main macro, immediately below .Replacement.ClearFormatting e.g.
Code:
.Replacement.ClearFormatting
.Font.Name = "Times New Roman"
.Font.Bold = True
__________________
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
 

Tags
word hyperlink, word macro



Similar Threads
Thread Thread Starter Forum Replies Last Post
Search Word for specific strings and replace with hyperlinks from a list jlive24 Word VBA 2 06-26-2022 08:14 PM
Can anyone help me with renaming of specific hyperlinks macro in7el Word VBA 8 07-30-2020 06:33 AM
Add hyperlinks to specific font style Word forces use of a specific style C_Hawk1996 Word 1 04-13-2016 05:35 AM
How to set style automatically for specific texts ragesz Word 2 07-25-2013 07:08 AM
Create Hyperlinks from Word to specific location in PDF sukanyae Word 0 02-25-2010 04:08 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:47 AM.


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