UseAddressBook Method
Applies To
MailMerge object.
Description
Selects the address book that's used as the data source for a mail merge operation.
Syntax
expression.UseAddressBook(Type)
expression Required. An expression that returns a MailMerge object.
Type Required String. The address book to be used as the mail merge data source. The string corresponds to the application's file extension, as specified in the registry (for example, "olk" for Outlook, "scd" for Schedule+, or "pab" for the Personal Address Book).
Example
This example creates a new main document that uses the Personal Address Book as it's data source.
Set myDoc = Documents.Add
With myDoc.MailMerge
.MainDocumentType = wdFormLetters
.UseAddressBook Type:="pab"
End With