OnDisconnect Event

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Occurs when the PivotTable list is explicitly disconnected from a data source, or the connection is changed to a different data source.

Private Sub Object_OnDisconnect()

Object   The name of the PivotTable object that you are trapping this event for.