Field codes: GreetingLine field

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.

Expand your Office skills
Explore training
Get new features first
Join Office Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×