How do I make every first word in every paragraph bold?

I have a document with more than a hundred pages, full of definition paragraphs:

ABC: 142543748

DFR: 54484

DTHJ: 7648dh877

DGHH: 7484g6

Initially I made every definition bold (ie: "ABC: 142543748..."), but then restyled the document, which overrode all the bold definitions, and saved it without "versions" enabled.
What do I do from here? Manually changing everything would be ridiculous. 
Answer
Answer
A simple macro should work

Dim oPara As Paragraph
    For Each oPara In ActiveDocument.Paragraphs
        If oPara.Range.Words(2).Characters(1) = ":" Then
            oPara.Range.Words(1).Font.Bold = True
        End If
    Next oPara

http://www.gmayor.com/installing_macro.htm   

or you could use a wildcard search and replace  - http://www.gmayor.com/replace_using_wildcards.htm   
Graham Mayor (Microsoft Word MVP 2002-2019)
For more Word tips and downloads visit my web site
https://www.gmayor.com/Word_pages.htm

1 person found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated December 18, 2023 Views 6,735 Applies to: