A family of Microsoft word processing software products for creating web, email, and print documents.
You can use Find and Replace to change all instances of the XE field codes. Using Stefan Blom's comment to make the hidden text field codes visible, you'd see something like this: John Alvy{ XE "John Alvy" }
- First, temporarily turn off the AutoFormat As You Type option to replace "Straight quotes" with “smart quotes” (in Word Options > Proofing > AutoCorrect Options... dialog). This will avoid having smart quotes used in the XE (Mark Index) field code.
- Open the Find and Replace dialog (Ctrl-h) and type XE "John Alvy" in the Find what box, then XE "Alvy, John" in the Replace with box.
- Click Replace All to change all instances to { XE "Alvy, John" }.
- Restore the AutoFormat setting so your quotes and apostrophes will be corrected as you type.
To have the index display the surname with various given names (per Suzanne Barnhill's comment), use XE "Alvy:John" in the Replace with box.
If some entries were inadvertently set to use bold, they'll appear as { XE "Alvy, John" \b } so you could use a similar F&R approach to remove the \b switch.
You can also use the Find dialog to jump through all instances of Mark Index entries to review and edit as necessary.
- In the Find what box, click the Special button to choose Field (it will add ^d to the box) and then space XE to specify any XE field code (you need the space before the field code).
- Now you can use the Find Next button to jump from one to the next to review and edit as necessary.
- To review just specific Mark Index entries, add more details to constrain the find. For example, ^d XE "Alvy would let you review just those instances of Mark Index entries that start with the surname Alvy; ^d XE "John would find any Mark Index entries where John is the first word (and likely need to be edited to reverse the surname and given names).