find and replace variation

I have an index with entries like

alligators, 121, 145

cats, 21, 56

dogs, 13, 44, 97

I do not know why some of the index lines are in bold

I can't change the styles of the entries in the text because there are over 13,000 of them.

I want to unbold the word part of the entry but not the page numbers, so I would get this:

alligators, 121, 145

cats, 21, 56

dogs, 13, 44, 97

There must be an easy way to do this but I have not found it.

Steve

Answer
Answer

If you want to have a bold page number in the index, the proper way to do it is to add the \b switch to the index entry. If you're using the Mark Index Entry dialog to insert the XE field, you check the box for "Bold."

To rectify the problem now, display Hidden text so that your XE fields are displayed. Then run a Replace as follows:

  1. Press Ctrl+H to open the Replace dialog.
  2. Click More>> to expand the dialog.
  3. In the "Find what" box, type: ^d XE
  4. In the "Replace with" box, type: ^&
  5. With the insertion point in the "Replace with" box, click Format | Style and choose "Default Paragraph Font." Click OK.
  6. Click Replace All.

This will remove any manually applied formatting from your index entries. You will now need to seek out the entries for which you want bolded page numbers and add the \b switch to the XE field code.

Microsoft MVP (Word) since 1999
Fairhope, Alabama USA
http://ssbarnhill.com
http://wordfaqs.ssbarnhill.com
Screen shots captured with TechSmith's Snagit

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 October 5, 2021 Views 63 Applies to: