Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

The AddressBlock field code inserts a mail merge address block.

Note:  Word 2016 for Mac does not use this field.

If you're using this field for a mail merge, it's easiest to add it by clicking Address block in the Write & Insert Fields on the Mailings tab. By doing so, you can quickly specify address elements and formatting.

You can set options for this field, as well as insert it, by using the Field dialog box. To open the Fielddialog box, on Windows, choose the Inserttab, and then in the Textgroup, choose Quick Partsand then Field.

If you're using Mac, you can merge address information from a list into documents, but Word 2016 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 codetells Word what to insert or provide to the document after determining the value of the field code, such as the current date or the number of pages. Usually, the resulting value is simply displayed as part of the document. You can toggle between viewing the result or viewing the field code by pressing Alt+F9 on Windows or fn+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 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.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×