title | keywords | f1_keywords | ms.assetid | ms.date | ms.localizationpriority | |
---|---|---|---|---|---|---|
Workbook.PivotTableOpenConnection event (Excel) |
vbaxl10.chm503095 |
|
b6ce12f7-7bc6-bfcc-33f4-2e8ea6e53bae |
05/29/2019 |
medium |
Occurs after a PivotTable report opens the connection to its data source.
expression.PivotTableOpenConnection (Target)
expression A variable that represents a Workbook object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
Target | Required | PivotTable | The selected PivotTable report. |
Nothing
This example displays a message stating that the PivotTable report's connection to its source has been opened. This example assumes that you have declared an object of type Workbook with events in a class module.
Private Sub ConnectionApp_PivotTableOpenConnection(ByVal Target As PivotTable)
MsgBox "The PivotTable connection has been opened."
End Sub
[!includeSupport and feedback]