This documentation is archived and is not being maintained.

Workbook.AfterXmlImport Event

Office 2007
Occurs after an existing XML data connection is refreshed or after new XML data is imported into the specified Microsoft Excel workbook.


expression.AfterXmlImport(Map, IsRefresh, Result)

expression   A variable that represents a Workbook object.


NameRequired/OptionalData TypeDescription
MapRequiredXmlMapThe XML map that will be used to import data.
IsRefreshRequiredBooleanTrue if the event was triggered by refreshing an existing connection to XML data; False if the event was triggered by importing from a different data source.
ResultRequiredXlXmlImportResultIndicates the results of the refresh or import operation.

Return Value


XlXmlImportResult can be one of the following XlXmlImportResult constants:
xlXmlImportElementsTruncated. The contents of the specified XML data file have been truncated because the XML data file is too large for the worksheet.
xlXmlImportSuccess. The XML data file was successfully imported.
xlXmlImportValidationFailed. The contents of the XML data file do not match the specified schema map.