PivotCache.IsConnected Property
Excel Developer Reference |
Returns True if the MaintainConnection property is True and the PivotTable cache is currently connected to its source. Returns False if it is not currently connected to its source. Read-only Boolean.
Syntax
expression.IsConnected
expression A variable that represents a PivotCache object.
Remarks
The IsConnected property does not check to see if the connection is connected. Even if this property returns True, sending commands to the provider could result in an error if the connection is no longer valid.
Requires that the cache source type is external and that it is an OLE DB data source.
Example
The following example determines if the cache is connected to its source and notifies the user. This example assumes that a PivotTable exists on the active worksheet.
Visual Basic for Applications |
---|
|
See Also