Share via


Slicer.Name Property

Gets or sets the name of the specified slicer.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Property Name As String
    Get
    Set
'Usage
Dim instance As Slicer
Dim value As String

value = instance.Name

instance.Name = value
string Name { get; set; }

Property Value

Type: System.String
The name of the specified slicer.

Remarks

Read/write.

The name must be unique across all slicers within a workbook. The default name uses the text that the field name of the PivotField on which the slicer is based, and if necessary, appends a space and number to make the name unique.

See Also

Reference

Slicer Interface

Slicer Members

Microsoft.Office.Interop.Excel Namespace