WorkbookAfterXmlImport Event [Excel 2003 VBA Language Reference]

Note  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.

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

expression**.WorkbookAfterXmlImport(Wb**, Map, IsRefresh, Result)

expression Required. An expression that returns an Application object.

Wb   Required Workbook. The target workbook.

Map   Required XmlMap. The XML map that was used to import data.

IsRefresh   Required Boolean. True if the event was triggered by refreshing an existing connection to XML data, False if a new mapping was created.

XlXmlImportResult

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.

Remarks

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

Applies to | Application Object