Some of Word’s most powerful features are hidden from view, and one of these is field codes. While you may have encountered field codes when using mail merge, that’s not the only task you can accomplish with field codes. In this article we’ll look at how you can use field codes by themselves and in conjunction with bookmarks to create smart Word documents.
Let’s see a field code at work. To begin:
What you see on the screen depends on your particular Word setup. You may see today’s date formatted in the style that you selected, or you may see a field code on the screen that looks something like this:
{ DATE @ “dddd, MMMM dd, yyyy” * MERGEFORMAT }
![]() A Click-Here block can be created using the MacroButton Word field. (Click for larger image). |
If you see the date rather than the field code, press the Alt + F9 keyboard buttons simultaneously to toggle between displaying field codes and the field code results. The field code you see is created inside a set of curly braces.
While it appears that you could type the curly braces on the keyboard to create your own field codes this is not the case, and these braces are special characters that can be inserted only by pressing the Ctrl + F9 key combination.
Another handy field code keyboard shortcut is Shift + F9 – use this when you are positioned inside a field code to toggle between displaying the field code and displaying the results for this field code only.
To manage how Word displays field codes, choose Tools > Options > View tab. You can select whether field codes show in the document or not (disabling this is the preferable setting) and when to shade the fields: Never, Always or When Selected. Selecting Always or When Selected may assist you in getting started with field codes and the shading won’t display when you print the document.
One way to harness field codes to help create smart documents is to use them for Click-Here blocks. You click on these markers in your document to enter text. These boxes help ensure that text is positioned correctly, and they provide a useful prompt for the user. To make one
Click an area in the document where you want people to type some text, and
In the Field Codes area you should see the word MacroButton followed by some text. Remove the text and replace it with the following text so the Field Code looks like this: MACROBUTTON ClickHere [Type Recipient’s name in here]
Now click OK.
![]() The ASK field sets up the bookmark you will use for entering text. (Click for larger image). |
If you see the field code, press Alt + F9 so that you see just the prompt on the screen inside its square brackets. You can save this file either as a regular document or as a template.
Open the file or create a document based on the template and ‑ to see how the click-here block works ‑ click the prompt and type some text. When you do this, the field code disappears to be replaced by the text that you typed.
The basis for this click-here block is the MacroButton field code that is typically used to run a macro. However you can trick it into acting as a click-here block by typing a macro name that does not exist. The text you place in the square brackets is the prompt that will show on the screen. The square brackets are optional but they make the click here block look more professional.
You can create multiple click-here blocks in one document – use the same macro name and just change the prompt for each of them.
You can combine field codes with bookmarks to automatically enter text into a document. Here’s 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.
![]() Use the REF field to enter data that the user types in response to the ASK question. (Click for larger image). |
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.
![]() When you update field codes in the document, the ASK field prompts you for information. (Click for larger image). |
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.
Ethics and Artificial Intelligence: Driving Greater Equality
FEATURE | By James Maguire,
December 16, 2020
AI vs. Machine Learning vs. Deep Learning
FEATURE | By Cynthia Harvey,
December 11, 2020
Huawei’s AI Update: Things Are Moving Faster Than We Think
FEATURE | By Rob Enderle,
December 04, 2020
Keeping Machine Learning Algorithms Honest in the ‘Ethics-First’ Era
ARTIFICIAL INTELLIGENCE | By Guest Author,
November 18, 2020
Key Trends in Chatbots and RPA
FEATURE | By Guest Author,
November 10, 2020
FEATURE | By Samuel Greengard,
November 05, 2020
ARTIFICIAL INTELLIGENCE | By Guest Author,
November 02, 2020
How Intel’s Work With Autonomous Cars Could Redefine General Purpose AI
ARTIFICIAL INTELLIGENCE | By Rob Enderle,
October 29, 2020
Dell Technologies World: Weaving Together Human And Machine Interaction For AI And Robotics
ARTIFICIAL INTELLIGENCE | By Rob Enderle,
October 23, 2020
The Super Moderator, or How IBM Project Debater Could Save Social Media
FEATURE | By Rob Enderle,
October 16, 2020
FEATURE | By Cynthia Harvey,
October 07, 2020
ARTIFICIAL INTELLIGENCE | By Guest Author,
October 05, 2020
CIOs Discuss the Promise of AI and Data Science
FEATURE | By Guest Author,
September 25, 2020
Microsoft Is Building An AI Product That Could Predict The Future
FEATURE | By Rob Enderle,
September 25, 2020
Top 10 Machine Learning Companies 2021
FEATURE | By Cynthia Harvey,
September 22, 2020
NVIDIA and ARM: Massively Changing The AI Landscape
ARTIFICIAL INTELLIGENCE | By Rob Enderle,
September 18, 2020
Continuous Intelligence: Expert Discussion [Video and Podcast]
ARTIFICIAL INTELLIGENCE | By James Maguire,
September 14, 2020
Artificial Intelligence: Governance and Ethics [Video]
ARTIFICIAL INTELLIGENCE | By James Maguire,
September 13, 2020
IBM Watson At The US Open: Showcasing The Power Of A Mature Enterprise-Class AI
FEATURE | By Rob Enderle,
September 11, 2020
Artificial Intelligence: Perception vs. Reality
FEATURE | By James Maguire,
September 09, 2020
Datamation is the leading industry resource for B2B data professionals and technology buyers. Datamation's focus is on providing insight into the latest trends and innovation in AI, data security, big data, and more, along with in-depth product recommendations and comparisons. More than 1.7M users gain insight and guidance from Datamation every year.
Advertise with TechnologyAdvice on Datamation and our other data and technology-focused platforms.
Advertise with Us
Property of TechnologyAdvice.
© 2025 TechnologyAdvice. All Rights Reserved
Advertiser Disclosure: Some of the products that appear on this
site are from companies from which TechnologyAdvice receives
compensation. This compensation may impact how and where products
appear on this site including, for example, the order in which
they appear. TechnologyAdvice does not include all companies
or all types of products available in the marketplace.