View Single Post
 
Old 01-06-2022, 05:45 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Windows 10 Office 2019
Moderator
 
Join Date: Aug 2011
Posts: 4,000
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

Quote:
Originally Posted by armendarizj View Post
I work with documents that have a red hearing on the header. Sometimes the clients submit them without bolding the header. I would love to create a Macro where 1) it checks the header text if it is bold (if it is bold, no need to do anything) 2) If it is not bold, bold the entire header.




Let me know if this is possible. Thanks!!
You wrote "read hearing." Do you actually mean that the "heading" is red in color?

Checking for bold formatting isn't technically difficult, but the task will be more complex if the header contains more than one text paragraph and if not all text needs to be checked (for example).

A sample document would help.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote