Compartilhar via


Workbook.ActiveSlicer Property

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

Namespace:  Microsoft.Office.Tools.Excel
Assemblies:   Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
  Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

Syntax

'Declaration
ReadOnly Property ActiveSlicer As Slicer
Slicer ActiveSlicer { get; }

Property Value

Type: Microsoft.Office.Interop.Excel.Slicer
A Slicer that represents the active slicer in the active workbook or in the specified workbook.

Exceptions

Exception Condition
MissingMemberException

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.

.NET Framework Security

See Also

Reference

Workbook Interface

Microsoft.Office.Tools.Excel Namespace