LookupNameProperties Method

Microsoft Word Visual Basic

LookupNameProperties Method

Show All

       

LookupNameProperties method as it applies to the Application object.

Looks up a name in the global address book list and displays the Properties dialog box, which includes information about the specified name. If this method finds more than one match, it displays the Check Names dialog box.

expression.LookupNameProperties(Name)

expression  Required. An expression that returns an Application object.

Name  Required String. A name in the global address book.

LookupNameProperties method as it applies to the Range object.

Looks up a name in the global address book list and displays the Properties dialog box, which includes information about the specified name. If this method finds more than one match, it displays the Check Names dialog box.

expression.LookupNameProperties

expression   Required. An expression that returns a Range object.

Example

As it applies to the Application object.

This example looks up the name Don Funk in the address book and displays the Properties dialog box for Don Funk.

Application.LookupNameProperties Name:="Don Funk"

As it applies to the Range object.

This example looks up the selected name in the address book and displays the Properties dialog box for that person.

Selection.Range.LookupNameProperties