EditHeaderSource Method Example

This example attaches a header source to the active document and then opens the header source.

With ActiveDocument.MailMerge
    .MainDocumentType = wdFormLetters
    .OpenHeaderSource Name:="C:\My Documents\Header.doc"
    .EditHeaderSource
End With

This example opens the header source if the active document has an associated header file attached to it.

Set MM = ActiveDocument.MailMerge
If MM.State = wdMainAndSourceAndHeader Or _
        MM.State = wdMainAndHeader Then
    MM.EditHeaderSource
End If