Field codes: AddressBlock field

Applies To
Word for Microsoft 365 Word for Microsoft 365 for Mac Word 2024 Word 2024 for Mac Word 2021 Word 2021 for Mac

The AddressBlock field code inserts a mail merge address block.

To insert an address block, go to Mailings > Address Block. Then you can quickly specify address elements and formatting.

In Word for Windows, you can also insert the field and set its options by using the Field dialog box. Go to Insert > Quick Parts > Field.

If you're using Mac, you can merge address information from a list into documents, but Word for Mac uses MergeField to insert merged data. For more information about creating merge documents on Mac, see Create envelopes by using mail merge in Word for Mac and Create mailing labels in Word by using mail merge.

Tip

A field code tells the field what to display. 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 on Windows or Option+F9 on Mac.

Syntax

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

{ ADDRESSBLOCK [Switches ] ⁠}⁠

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 from 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.