This documentation is archived and is not being maintained.

_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)

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.

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.

Show: