MailMergeMainDocumentType, MailMergeMainDocumentType()

Syntax

MailMergeMainDocumentType Type

MailMergeMainDocumentType()

Remarks

The MailMergeMainDocumentType statement makes the active window a main document. Note that if the active document is already a main document, Word removes the attached data source, if any.

Argument

Explanation

Type

The type of merge documents you will create with the main document:

0 (zero) or omitted Form letters

1 Mailing labels

2 Envelopes

3 Catalog documents


The MailMergeMainDocumentType() function returns one of the Type values if the active document is a main document, or –1 if it is a regular Word document.

See Also

MailMergeCreateDataSource, MailMergeOpenDataSource, MailMergeReset