Bewerken

Delen via


Worksheet.PivotTableUpdate event (Excel)

Occurs after a PivotTable report is updated on a worksheet.

Syntax

expression.PivotTableUpdate (Target)

expression A variable that represents a Worksheet object.

Parameters

Name Required/Optional Data type Description
Target Required PivotTable The selected PivotTable report.

Return value

Nothing

Example

This example displays a message stating that the PivotTable report has been updated. This example assumes that 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

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.