Syntax
MailMergeCreateHeaderSource [.FileName = text] [.PasswordDoc = text] [, .HeaderRecord = text]
Remarks
Creates a Word document that stores a header record that is used in place of the data source header record in a mail merge. MailMergeCreateHeaderSource attaches the new header source to the active document, which becomes a main document if it is not one already.
Argument | Explanation |
.FileName | The path and filename for the new header source |
.PasswordDoc | A password to protect the new header source |
.HeaderRecord | Field names for the header record. If omitted, the standard header record is used: "Title, FirstName, LastName, JobTitle, Company, Address1, Address2, City, State, PostalCode, Country, HomePhone, WorkPhone." To separate field names in Windows, use the character specified by the "sList" setting in the [intl] section of your WIN.INI file. (In Windows 95 and Windows NT, this setting is stored in the registry.) |
See Also
MailMergeCreateDataSource, MailMergeEditHeaderSource, MailMergeOpenHeaderSource