Results 1 to 7 of 7
  1. #1
    3 Star Lounger
    Join Date
    Mar 2009
    Location
    Hong Kong
    Posts
    359
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have a huge list of glossary. I would like to change the first word (a term) in all paragraphs to Bold & Red.
    All terms end with a colon (.
    For example:
    Attest: To swear a statement is true.
    Attorney: Also called Lawyer, Counsel. The legal representative of a party at a trial.
    Attorney Client Privilege: The indefinite protection of oral, written, actions or ges*tures of communication between an attor*ney and client...

    Thanks in advance.

  2. #2
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    5,055
    Thanks
    2
    Thanked 417 Times in 346 Posts
    Hi armsys,

    You could use:
    Find = (<[A-Za-z ]{1,}
    Replace = \1
    and format the replacement bold & red. Do note that this will make the colon bold & red.

    Alternatively, you could use:
    Find = (^13[!:]{1,})
    Replace = \1
    and format the replacement bold & red. Do note that this will make the preceding paragraph break bold & red (but at least that won't show up on the print). It also won't pick up an entry that doesn't follow a paragraph break (eg a glossary entry that occurs immediately after a Section break or a table).
    Cheers,

    Paul Edstein
    [MS MVP - Word]

  3. #3
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    8,191
    Thanks
    48
    Thanked 986 Times in 916 Posts
    You can use regular expressions to find text at the beginning of a line, but multiple words is tricky.
    It might be easier to use a macro because the keystrokes are consistent - go to a the beginning of the next line, search for colon, highlight everything back to the beginning of the line, and format.
    We need to know what version of word processor you are running to help with the macro.

    [Edit] Or what macropod said!

    cheers, Paul

  4. #4
    3 Star Lounger
    Join Date
    Mar 2009
    Location
    Hong Kong
    Posts
    359
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi Macropd,
    It's a surprise and an honor to receive your reply. I've learned a lot from your articles in the past.
    Before receiving your post, I used ^13A*: as the Find string. At least, it works. Yours is more eloquent.

    Hi Paul,
    Thanks for your help.

    Armstrong

  5. #5
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    8,191
    Thanks
    48
    Thanked 986 Times in 916 Posts
    You should give macropod a thumb up for such an excellent reply.

    cheers, Paul

  6. #6
    3 Star Lounger
    Join Date
    Mar 2009
    Location
    Hong Kong
    Posts
    359
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi Paul,
    Thanks for your reminder. Of course, I'm delighted to do so.
    Thanks, Paul.
    Armstrong

  7. #7
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    5,055
    Thanks
    2
    Thanked 417 Times in 346 Posts
    Quote Originally Posted by armsys View Post
    It's a surprise and an honor to receive your reply. I've learned a lot from your articles in the past
    ...
    Armstrong
    You're welcome.
    Cheers,

    Paul Edstein
    [MS MVP - Word]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •