PivotCache.RobustConnect Property
Excel Developer Reference |
Returns or sets how the PivotTable cache connects to its data source. Read/write XlRobustConnect.
Syntax
expression.RobustConnect
expression A variable that represents a PivotCache object.
Remarks
XlRobustConnect can be one of these XlRobustConnect constants. |
xlAlways . The cache always uses external source information (as defined by the SourceConnectionFile or SourceDataFile property) to reconnect. |
xlAsRequired . The cache uses external source info to reconnect using the Connection property. |
xlNever . The cache never uses source info to reconnect. |
Example
The following example determines the setting for the cache connection and notifies the user. The example assumes a PivotTable exists on the active worksheet.
Visual Basic for Applications |
---|
|
See Also