PivotTableUpdate Event

Microsoft Excel Visual Basic

Private Sub expression_PivotTableUpdate(ByVal Target As PivotTable)

expression    A variable which references an object of type Worksheet declared with events in a class module.

Target Required. The selected PivotTable report.

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