itmanagement.earthweb.com/entdev/article.php/3755521
|
By Helen Bradley June 26, 2008
Combining Field Codes and BookmarksYou can combine field codes with bookmarks to automatically enter text into a document. Heres how to create a solution that prompts people for their name and then inserts it into two places in a document.
You should now see a dialog on the screen prompting you to type your name. Click OK to accept this ‑ do not type anything into the box at this stage.
The bookmark reference "YourName" is the key to entering your name into the document.
You should now see the text "Type your name in here" in the position that you placed the REF field code. Repeat this process and create a REF field at each position in the document where your name should appear. Create each REF field exactly the same way as the previous one using the YourName bookmark, but you can choose different formatting if you like. When you're done, save the document as a regular document or a template as desired.
To see how this feature works, open the document and:
In each place where you placed a REF field you should now see your name appear. If you need multiple pieces of information entered into a document in lots of different places, create ASK fields for each of them and place a REF field in each position you need to insert the data into the document. The only proviso is to ensure that each ASK field has a different bookmark name and that the REF field refers to the bookmark name for the particular data you want inserted at that point in the document. These examples demonstrate a few ways that Word field codes can help you automate document production and help ensure that data entered into your documents is consistent throughout.Helen Bradley is a respected international journalist writing regularly for small business and computer publications in the USA, Canada, South Africa, UK and Australia. You can learn more about her at her Web site, HelenBradley.com This article was first published on SmallBusinessComputing.com. |