_Workbook.ActiveSlicer Property
Gets an object that represents the active slicer in the active workbook or in the specified workbook.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
ReadOnly Property ActiveSlicer As Slicer
Get
'Usage
Dim instance As _Workbook
Dim value As Slicer
value = instance.ActiveSlicer
Slicer ActiveSlicer { get; }
Property Value
Type: Microsoft.Office.Interop.Excel.Slicer
An object that represents the active slicer in the active workbook or in the specified workbook.
Remarks
Returns a null reference (Nothing in Visual Basic) if no slicer is active.
Read-only.
If you do not specify a Workbook object, this property returns the active slicer in the active workbook.