Skip to main content

Application.SheetPivotTableUpdate event

Table of contents
  1. Syntax
  2. Parameters
  3. Example

Occurs after the sheet of the PivotTable report has been updated.

Syntax

expression.SheetPivotTableUpdate (ShTarget)

expression An expression that returns an Application object.

Parameters

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

Example

This example displays a message stating that the sheet of the PivotTable report has been updated. This example assumes that you have declared an object of type Application or Workbook with events in a class module.

Private Sub ConnectionApp_SheetPivotTableUpdate(ByVal shOne As Object, Target As PivotTable)
    MsgBox "The SheetPivotTable connection has been updated."
End Sub

Leave a comment

Your email address will not be published. Required fields are marked *

Format your code: <pre><code class="language-vba">place your code here</code></pre>