Preparing Microsoft Word Source Documents : Using Variables in Word : Inserting Variables into Word
Inserting Variables into Word
You can insert a variable into a source document after you apply a Microsoft Word template that contains the variables to your source document. If you want to use a variable that is not defined in a Microsoft Word template, you must create the variable in your source document before you can insert it. For more information about creating a variable, see “Creating Variables in Word”.
The following procedure provides an example of how to insert variables in Microsoft Word source documents using Microsoft Word 2007 or 2010.
Note: Newer versions of Word may or may not use this exact procedure, however this may provide enough information to get working with variables in Word.
To insert a variable (DocProperty field) into a Microsoft Word document
1. Open the Microsoft Word source document in which you want to insert a variable.
2. Place your cursor in the location where you want to insert the variable.
3. Go to the Insert ribbon and click on the Quick Parts dropdown and then select Field...
4. In the Field names selection box, select DocProperty
5. In the adjacent selection box labeled Property, select the appropriate variable name to insert in your document