다음을 통해 공유


PivotTableCloseConnection Event

Occurs after a PivotTable report closes the connection to its data source.

Syntax

.PivotTableCloseConnection(Target)

A variable that represents a Workbook object.

Parameters

Name

Required/Optional

Data Type

Description

Target

필수

PivotTable

The selected PivotTable report.

Return Value

Nothing

Example

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

Private Sub ConnectionApp_PivotTableCloseConnection(ByVal Target As PivotTable) 
 
 MsgBox "The PivotTable connection has been closed." 
 
End Sub