Workbook.SheetPivotTableBeforeCommitChanges 事件

在针对 OLAP 数据源提交数据透视表的更改之前发生。 此事件只能用于 Excel 2010 项目中。

命名空间:  Microsoft.Office.Tools.Excel
程序集:  Microsoft.Office.Tools.Excel(在 Microsoft.Office.Tools.Excel.dll 中)

语法

声明
Event SheetPivotTableBeforeCommitChanges As WorkbookEvents_SheetPivotTableBeforeCommitChangesEventHandler
event WorkbookEvents_SheetPivotTableBeforeCommitChangesEventHandler SheetPivotTableBeforeCommitChanges

异常

异常 条件
MissingMemberException

此事件在 Excel 2007 项目中使用。

备注

在 Excel 将要针对数据透视表的 OLAP 数据源执行 COMMIT TRANSACTION 之前,在用户刚刚选择保存整个数据透视表的更改之后,会发生 SheetPivotTableBeforeCommitChanges 事件。

提示

此事件显示在针对 .NET Framework 4 的 Excel 2007 项目中的 IntelliSense 中。 但是,此事件不能在 Excel 2007 项目中使用。

.NET Framework 安全性

请参见

参考

Workbook 接口

Microsoft.Office.Tools.Excel 命名空间