Compartilhar via


WorkbookBase.ActiveSlicer Property

Definition

Gets an object that represents the active slicer in the active workbook or in the specified workbook.

public:
 property Microsoft::Office::Interop::Excel::Slicer ^ ActiveSlicer { Microsoft::Office::Interop::Excel::Slicer ^ get(); };
public Microsoft.Office.Interop.Excel.Slicer ActiveSlicer { get; }
member this.ActiveSlicer : Microsoft.Office.Interop.Excel.Slicer
Public ReadOnly Property ActiveSlicer As Slicer

Property Value

A Slicer that represents the active slicer in the active workbook or in the specified workbook.

Exceptions

This property is used in an Excel 2007 project.

Remarks

If you do not specify a Workbook object, this property returns the active slicer in the active workbook.

Note

This property appears in IntelliSense in Excel 2007 projects that target the .NET Framework 4. However, this property cannot be used in Excel 2007 projects.

Applies to