Deleting Variables in Word
Delete a variable in a Microsoft Word source document when you no longer want to use the variable. Before you delete a variable, ensure you search for the variable and delete or replace all references to the variable. If your source document still contains a reference to a variable after you delete it, Microsoft Word displays errors in places where a reference to a deleted variable still exists.
The following procedure provides an example of how to delete variables in Microsoft Word source documents using Microsoft Word 2003. Steps for deleting variables in Microsoft Word may be different in other versions of Microsoft Word.
To delete a variable in a Microsoft Word source document
Open the Microsoft Word source document that contains the variable you want to delete.
Press Alt+F9 to display all field codes in the source document.
Search for and replace all references to the variable you want to delete.
On the File menu, click Properties.
On the Custom tab, in the Properties field, select the name of the variable you want to delete in the Name column.
Click Delete.
Click OK.
On the Edit menu, click Select All.
Press the F9 key. Microsoft Word updates the fields in your Microsoft Word source document. If there are any fields that reference the deleted variable in your source document, Microsoft Word displays an error message in the field.
Search for the word Error in your Microsoft Word source document to verify no references to the deleted variable remain in your source document.
Save your Microsoft Word source document.