Display/Show related procedures in class MailMerge (Word VBA)

This page presents procedures from class MailMerge related to the theme Display/Show: ShowSendToCustom and ShowWizard

ShowSendToCustom

Returns or sets a String corresponding to the caption on a custom button on the Complete the merge step (step six) of the Mail Merge Wizard.

When a user clicks the custom button, the MailMergeWizardSendToCustom event executes.

Sub ShowCustomButton() 
 With ActiveDocument.MailMerge 
 If .MainDocumentType = wdMailingLabels Then 
 .ShowSendToCustom = "Custom Label Processing" 
 End If 
 End With 
End Sub

ShowWizard

Displays the Mail Merge Wizard in a document.

Syntax : expression.ShowWizard (InitialState, ShowDocumentStep, ShowTemplateStep, ShowDataStep, ShowWriteStep, ShowPreviewStep, ShowMergeStep)

Sub ShowMergeWizard() 
 With ActiveDocument.MailMerge 
 If .WizardState > 0 Then 
 .ShowWizard InitialState:=6, ShowPreviewStep:=False 
 End If 
 End With 
End Sub

Arguments

The following argument is required

InitialState (Long) - The number of the Mail Merge Wizard step to display.

The following arguments are optional

ShowDocumentStep (Boolean) - True keeps the "Select document type" step in the sequence of mail merge steps. False removes step one.

ShowTemplateStep (Boolean) - True keeps the "Select starting document" step in the sequence of mail merge steps. False removes step two.

ShowDataStep (Boolean) - True keeps the "Select recipients" step in the sequence of mail merge steps. False removes step three.

ShowWriteStep (Boolean) - True keeps the "Write your letter" step in the sequence of mail merge steps. False removes step four.

ShowPreviewStep (Boolean) - True keeps the "Preview your letters" step in the sequence of mail merge steps. False removes step five.

ShowMergeStep (Boolean) - True keeps the "Complete the merge" step in the sequence of mail merge steps. False removes step six.