AppEvents_Event.SheetPivotTableBeforeAllocateChanges Event
Occurs before changes are applied to a PivotTable.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Event SheetPivotTableBeforeAllocateChanges As AppEvents_SheetPivotTableBeforeAllocateChangesEventHandler
'Usage
Dim instance As AppEvents_Event
Dim handler As AppEvents_SheetPivotTableBeforeAllocateChangesEventHandler
AddHandler instance.SheetPivotTableBeforeAllocateChanges, handler
event AppEvents_SheetPivotTableBeforeAllocateChangesEventHandler SheetPivotTableBeforeAllocateChanges
Remarks
The SheetPivotTableBeforeAllocateChanges event occurs immediately before Excel executes an UPDATE CUBE statement to apply all changes to the PivotTable's OLAP data source, and immediately after the user has chosen to apply changes in the user interface.