The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ApplicationEvents4_MailMergeWizardStateChangeEventHandler Delegate 

A Delegate type used to add an event handler for the MailMergeWizardStateChange event. The MailMergeWizardStateChange event occurs when a user changes from a specified step to a specified step in the Mail Merge Wizard.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in

Sub Sub1(Doc As Document, _
	FromState As Integer, _
	ToState As Integer, _
	Handled As Boolean)
End Sub
Dim applicationEvents4_MailMergeWizardStateChangeEventHandler1 As New ApplicationEvents4_MailMergeWizardStateChangeEventHandler(AddressOf Sub1)

public delegate void ApplicationEvents4_MailMergeWizardStateChangeEventHandler(
	[In] Document Doc, 
	[In] ref int FromState, 
	[In] ref int ToState, 
	[In] ref bool Handled
public delegate void ApplicationEvents4_MailMergeWizardStateChangeEventHandler(
	/*in*/Document Doc, 
	/*in*/int FromState, 
	/*in*/int ToState, 
	/*in*/boolean Handled
In JScript, you can use the delegates in the .NET Framework, but you cannot define your own.



The mail merge main document.


The Mail Merge Wizard step from which a user is moving.


The Mail Merge Wizard step to which a user is moving.


True moves the user to the next step. False for the user to remain at the current step.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Community Additions