Forum Discussion
Mehmetbukum
Sep 29, 2022Copper Contributor
Edit index entries
i have got thousands index entries. can i edit { XE "joe" } as { XE "joe" \f "a"} by a macro
Mehmetbukum
Sep 29, 2022Copper Contributor
yes, all XE fields must switch with \f "a" Stefan_Blom
Stefan_Blom
Sep 29, 2022MVP
OK, since you want to modify all the XE fields, try the following:
Sub ModifyAllXEFields()
'Stefan Blom, MVP, September 2022
Dim f As Field
For Each f In ActiveDocument.Fields
If f.Type = wdFieldIndexEntry Then
f.Code.Text = f.Code.Text & " \f ""a"""
End If
Next f
End Sub
For installation instructions, see http://www.gmayor.com/installing_macro.htm.
- MehmetbukumSep 29, 2022Copper Contributoryou're gorgeous. You saved me a lot of trouble. thank you very much.