Get rid of XE codes

Index entry XE codes in Word are field codes associated with particular string of text. The Tip of the Night for April 9, 2017, showed how XE codes can be used to automatically add multiple hyperIinks to a Word document. The Tip of the NIght for September 23, 2019 showed how to use a macro to remove XE codes added to a Word document.


You can also run a simple find and replace search to remove all of the XE codes added to Word document. Searching for:


^19 XE


. . . and replacing it with nothing, will erase any XE codes present in a Word document.



Be sure to have formatting symbols displayed, by pressing the ¶ icon on the Home ribbon.