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

The GreetingLine field inserts a mail merge greeting line. You can set options for this field and insert it by using the Field dialog box (Insert menu). However, if you're using this field for a mail merge, it's easiest to insert by clicking Greeting line in step 4 of the Mail Merge task pane. By doing so, you can quickly specify address elements and formatting.


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

{ GREETINGLINE [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.



Specifies the text to include in the merge field if the name field in the data source is blank.


Specifies the format of the name included in the field.


Specifies the language ID used to format the name. 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!