Microsoft Office Online
Sign in to My Office Online (What's this?) | Sign in

 
 
Microsoft Office Word
Search
Search
 
Icon: Flag: (c) Microsoft
Get up to speed
 
 
 
Warning: You are viewing this page with an unsupported Web browser. This Web site works best with Microsoft Internet Explorer 6.0 or later, Firefox 1.5, or Netscape Navigator 8.0 or later. Learn more about supported browsers.

About fields
 

Fields are used as placeholders for data that might change in a document and for creating form letters and labels in mail-merge documents.

Microsoft Word inserts fields when you use particular commands, such as the Date and Time command on the Insert menu. You can also manually insert your own fields by using the Field command on the Insert menu.

Security  Because field codes can be visible to anyone reading your document, be sure that the information you place in field codes is not information that you want kept private.

ShowCommon uses for fields

You might insert a field if you want to:

In other cases, it's simpler to use the commands and options provided in Word to add the information you want. For example, you can insert a hyperlink (hyperlink: Colored and underlined text or a graphic that you click to go to a file, a location in a file, a Web page on the World Wide Web, or a Web page on an intranet. Hyperlinks can also go to newsgroups and to Gopher, Telnet, and FTP sites.) by using the HYPERLINK field, but it's easier to use the Hyperlink command on the Insert menu.

ShowAbout field codes and field results

Field codes (field code: Placeholder text that shows where specified information from your data source will appear; the elements in a field that generate a field's result. The field code includes the field characters, field type, and instructions.) appear between curly brackets, or braces ( { } ). Fields are somewhat like formulas in Microsoft Excel — the field code is like the formula, and the field result (field results: Text or graphics inserted in a document when Microsoft Word carries out a field's instructions. When you print the document or hide field codes, the field results replace the field codes.) is like the value that the formula produces. You can switch between displaying field codes and results in your document.

You cannot insert field braces by typing the characters on the keyboard. However, you can insert them by using the keyboard shortcut CTRL+F9.

ShowAbout field switches

A switch is a special instruction that when placed in a field causes a specific action to occur. For example, inserting the \* Caps switch into a field specifies that the first letter of each word in the field result (field results: Text or graphics inserted in a document when Microsoft Word carries out a field's instructions. When you print the document or hide field codes, the field results replace the field codes.) is capitalized.

ShowExamples

Contact: {DOCPROPERTY "Manager" \* Upper }

In this example:

If the name of the Manager specified on the Summary tab of the Properties dialog box (File menu) is Anna Gerrard, inserting this field in your document results in the following:

Contact: ANNA GERRARD

advertisement