To create a document variable:
- Click File. The Info pane appears.
- Click Properties > Advanced Properties. The [Document Name] Properties dialog appears.
- Select the Custom tab.
- In the Name field, type a name for your variable; for example, Product.
- In the Value field, type the value you want your variable to have, for example, SecretFileSaver.
- Click OK.
To insert the variable in your document:
- Choose Insert > Quick Parts > Field. The Field dialog appears.
- From the Categories list, select Document Information.
- From the Field Names list, select DocProperty.
- From the Property list, select the name of your variable.
- Click OK.
This may seem like an awful lot of work, but there is an easier way. Now that you have the variable in your document, you can assign it to an AutoText entry, so that you don’t have to go through the whole process every time you want to use it.
To create an AutoText entry for the variable:
- In your document, select the variable.
- Choose Insert > Quick Parts > AutoCorrect. The AutoCorrect gallery appears.
- Click Save Selection to AutoText Gallery. The Create New Building Block dialog box appears.
- In the Name field, type a short name for your variable, for example, sfs.
- Click OK.
To insert the variable into your document using AutoText, type the short name and press F3.
To change your variable, follow the same steps you did to create it, but modify the name.
To update the document with the new name, choose Print Preview or Edit > Select > All and press F9.
No comments:
Post a Comment