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.

Syntax

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.

Switches

\e

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

\f

Specifies the format of the name included in the field.

\l

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.