PivotTableOpenConnection Event
The document is archived and information here might be outdated

Workbook.PivotTableOpenConnection Event

Office 2007
Occurs after a PivotTable report opens the connection to its data source.

Syntax

expression.PivotTableOpenConnection(Target)

expression   A variable that represents a Workbook object.

Parameters

NameRequired/OptionalData TypeDescription
TargetRequiredPivotTableThe selected PivotTable report.

Return Value
Nothing

Example

This example displays a message stating that the PivotTable report's connection to its source has been opened. This example assumes you have declared an object of type Workbook with events in a class module.

Visual Basic for Applications
Private Sub ConnectionApp_PivotTableOpenConnection(ByVal Target As PivotTable)

    MsgBox "The PivotTable connection has been opened."

End Sub



Show:
© 2016 Microsoft