Field codes: AddressBlock field

The AddressBlock field code inserts a mail merge address block. You can set options for this field (field: A set of codes that instructs Microsoft Word to insert text, graphics, page numbers, and other material into a document automatically. For example, the DATE field inserts the current date.) and insert it by using the Field dialog box (Insert tab, Text group, Quick Parts command, Field command). However, if you're using this field for a mail merge, it's easiest to insert by clicking Address block in the Write & Insert Fields on the Mailings tab. By doing so, you can quickly specify address elements and formatting.

Syntax

When you view the AddressBlock field code in your document, the syntax looks like this:

{ ADDRESSBLOCK [Switches ] }

 Note   A field code tells the field what to show. Field results are what is shown in the document after having evaluated the field code. To toggle between viewing the field code and the field code results, press Alt+F9.

Switches

\c

Specifies whether to include the name of the country/region. Type 0 (zero) to omit the country/region, 1 to always include the country/region, or 2 to include the country/region only if different from the value for \e.

\d

Specifies that the address be formatted according to the country/region of the recipient. If this switch is not used, then addresses are formatted according to preferences specified in the regional settings in Microsoft Windows Control Panel.

\e

Specifies which country/region to exclude form the address block. This is useful when your mailing contains a mix of domestic and international recipients.

 Note   If you want to exclude the names of more than one country or region, use the \e switch for each one.

\f

Specifies the name and address format by providing a template of merge field placeholders.

\l

Specifies the language ID used to format the address. Defaults to the language ID of the first character of the document.

 
 
Applies to:
Word 2013, Word 2010