This documentation is archived and is not being maintained.

AppEvents_Event.WorkbookAfterXmlImport Event 

Occurs after an existing XML data connection is refreshed or new XML data is imported into any open Microsoft Excel workbook.

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

WithEvents appEvents_Event1 As AppEvents_Event
Function appEvents_Event1_WorkbookAfterXmlImport(Wb As Workbook, _
	Map As XmlMap, _
	IsRefresh As Boolean, _
	Result As XlXmlImportResult) As Void
	Handles appEvents_Event1.WorkbookAfterXmlImport
End Function

event AppEvents_WorkbookAfterXmlImportEventHandler WorkbookAfterXmlImport;
 void add_WorkbookAfterXmlImport(AppEvents_WorkbookAfterXmlImportEventHandler handler);
 void remove_WorkbookAfterXmlImport(AppEvents_WorkbookAfterXmlImportEventHandler handler);
In JScript, you can handle the events defined by a class, but you cannot define your own.

Use the AfterXmlImport event if you want to perform an operation after XML data has been imported into a particular workbook.

XML features, except for saving files in the XML Spreadsheet format, are available only in Microsoft Office Professional Edition 2003 and Microsoft Office Excel 2003.

Development Platforms

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

Target Platforms