Worksheet.PivotTableUpdate Event (Excel)
Occurs after a PivotTable report is updated on a worksheet.
Syntax
식 .PivotTableUpdate(Target)
식 A variable that represents a Worksheet object.
Parameters
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
Target |
필수 |
The selected PivotTable report. |
Return Value
Nothing
Example
This example displays a message stating that the PivotTable report has been updated. This example assumes you have declared an object of type Worksheet with events in a class module.
Private Sub Worksheet_PivotTableUpdate(ByVal Target As PivotTable)
MsgBox "The PivotTable connection has been updated."
End Sub