共用方式為


Workbook..::.BeforeXmlExport Event

Occurs before Microsoft Office Excel saves or exports data from the workbook to an XML data file.

Namespace:  Microsoft.Office.Tools.Excel
Assemblies:   Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
  Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

Syntax

Event BeforeXmlExport As WorkbookEvents_BeforeXmlExportEventHandler
event WorkbookEvents_BeforeXmlExportEventHandler BeforeXmlExport

Remarks

This event will not occur when you are saving to the XML Spreadsheet file format.

.NET Framework Security

See Also

Reference

Workbook Interface

Microsoft.Office.Tools.Excel Namespace