WorkbookAfterXmlExport Event

Microsoft Excel Visual Basic

Show All Show All

WorkbookAfterXmlExport Event

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 Microsoft Excel saves or exports data from any open workbook to an XML data file.

expression.WorkbookAfterXmlExport(Wb, Map, Url, 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 save or export data.

Url    Required String. The location of the XML file that was exported.

Result    Required XlXmlExportResult. Indicates the results of the save or export operation.

XlXmlExportResult can be one of the following XlXmlExportResult constants
xlXmlExportSuccess The XML data file was successfully exported.
xlXmlExportValidationFailed The contents of the XML data file do not match the specified schema map.

Remarks

Use the AfterXmlExport event if you want to perform an operation after XML data has been exported from a particular workbook.