This documentation is archived and is not being maintained.

Workbook.BeforeXmlImport Event

Office 2007
Occurs before an existing XML data connection is refreshed or before new XML data is imported into a Microsoft Excel workbook.


expression.BeforeXmlImport(Map, Url, IsRefresh, Cancel)

expression   A variable that represents a Workbook object.


NameRequired/OptionalData TypeDescription
MapRequiredXmlMapThe XML map that will be used to import data.
UrlRequiredStringThe location of the XML file to be imported.
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.
CancelRequiredBooleanSet to True to cancel the import or refresh operation.

Return Value