Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-22-2020, 06:52 AM
PCUSER PCUSER is offline Macro to highlight and bolden specific text in Word Comments Windows 10 Macro to highlight and bolden specific text in Word Comments Office 2019
Novice
Macro to highlight and bolden specific text in Word Comments
 
Join Date: Sep 2020
Posts: 1
PCUSER is on a distinguished road
Default Macro to highlight and bolden specific text in Word Comments


I would like to get a Macro to find specific text both in the body of a Word document and in the comments and highlight them in yellow and also make them bold. For example, I regularly use the phrase "Internal comment:". I need this highlighted to make it clear it is not for external use. The macros I have tried so far successfully change the text in the word document but do not do anything to the comments.
Reply With Quote
  #2  
Old 09-22-2020, 03:08 PM
Guessed's Avatar
Guessed Guessed is offline Macro to highlight and bolden specific text in Word Comments Windows 10 Macro to highlight and bolden specific text in Word Comments Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,932
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

You need to wrap your working code inside a loop that processes each 'StoryRange' in the document. There are plenty of examples on this forum and you can do a wider search if this post doesn't help.
https://www.msofficeforums.com/word-...fic-color.html
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply

Tags
macro edit

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to highlight and bolden specific text in Word Comments Highlight numbers after a specific word in numbered list liblikas90 Word VBA 3 02-27-2019 03:52 AM
Macro to highlight and bolden specific text in Word Comments VBA word macro to highlight a selected text just like a spell checker Pankaj Word VBA 1 10-14-2016 03:48 AM
Macro to highlight and bolden specific text in Word Comments Macro for word to add page break and specific text to end of document pizzaman1 Word VBA 6 11-14-2014 11:25 PM
Macro to highlight and bolden specific text in Word Comments Macro to insert multiple pictures to word to a specific size and text wrap mescaL Word VBA 3 11-03-2014 10:51 PM
Macro to highlight and bolden specific text in Word Comments Macro to highlight text between 2 points in word 2010 jsilva1950 Word VBA 2 04-25-2013 12:21 AM

Other Forums: Access Forums

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


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