AppEvents_WorkbookBeforeXmlExportEventHandler Delegate
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

AppEvents_WorkbookBeforeXmlExportEventHandler Delegate 

A Delegate type used to add an event handler for the WorkbookBeforeXmlExport event. The WorkbookBeforeXmlExport event occurs before Microsoft Excel saves or exports data from any open workbook to an XML data file.

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

Sub Sub1(Wb As Workbook, _
	Map As XmlMap, _
	Url As String, _
	Cancel As Boolean)
End Sub
Dim appEvents_WorkbookBeforeXmlExportEventHandler1 As New AppEvents_WorkbookBeforeXmlExportEventHandler(AddressOf Sub1)

public delegate void AppEvents_WorkbookBeforeXmlExportEventHandler(
	[In] Workbook Wb, 
	[In] XmlMap Map, 
	[In] string Url, 
	[In, Out] ref bool Cancel
public delegate void AppEvents_WorkbookBeforeXmlExportEventHandler(
	/*in*/Workbook Wb, 
	/*in*/XmlMap Map, 
	/*in*/System.String Url, 
	/*in*/boolean Cancel
In JScript, you can use the delegates in the .NET Framework, but you cannot define your own.



Required Workbook. The target workbook.


Required XmlMap. The XML map that will be used to save or export data.


Required String. The location of the XML file to be exported.


Required Boolean. Set to True to cancel the save or export operation.

Development Platforms

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

Target Platforms

© 2016 Microsoft