SlicerCache.WorkbookConnection Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a WorkbookConnection object that represents the data connection used by the specified slicer.
public:
property Microsoft::Office::Interop::Excel::WorkbookConnection ^ WorkbookConnection { Microsoft::Office::Interop::Excel::WorkbookConnection ^ get(); };
public Microsoft.Office.Interop.Excel.WorkbookConnection WorkbookConnection { get; }
Public ReadOnly Property WorkbookConnection As WorkbookConnection
Property Value
A WorkbookConnection object that represents the data connection used by the specified slicer.
Remarks
Read-only.
The WorkbookConnection property only applies to slicers that are based on external data sources (SlicerCache.SourceType = xlExternal). Attempting to access the WorkbookConnection property for slicers that are connected to PivotTables based on workbook ranges or lists (SlicerCache.SourceType = xlDatabase) generates a run-time error.