SlicerCollection

SlicerCollection class

Specifies the collection of all the Slicer objects on the specified worksheet.

Methods

NameDescription
add(pivot, destCellName, baseFieldName)Add a new Slicer using PivotTable as data source
add(pivot, row, column, baseFieldName)Add a new Slicer using PivotTable as data source
add(pivot, row, column, baseFieldIndex)Add a new Slicer using PivotTable as data source
add(pivot, destCellName, baseFieldIndex)Add a new Slicer using PivotTable as data source
add(pivot, row, column, baseField)Add a new Slicer using PivotTable as data source
add(pivot, destCellName, baseField)Add a new Slicer using PivotTable as data source
add(table, index, destCellName)Add a new Slicer using ListObjet as data source
add(table, listColumn, destCellName)Add a new Slicer using ListObjet as data source
add(table, listColumn, row, column)Add a new Slicer using ListObjet as data source
add()Reserved for internal use.
clear()
contains()Reserved for internal use.
get()Gets the Slicer by index.
get()Gets the Slicer by slicer’s name.
get()Reserved for internal use.
getCount()
indexOf()Reserved for internal use.
iterator()
remove(slicer)Remove the specified Slicer
removeAt(index)Deletes the Slicer at the specified index

add(pivot, destCellName, baseFieldName)

Add a new Slicer using PivotTable as data source

ParameterTypeDescription
pivotPivotTablePivotTable object
destCellNameStringThe cell in the upper-left corner of the Slicer range.
baseFieldNameStringThe name of PivotField in PivotTable.BaseFields

Returns: Number — Number The new add Slicer index

add(pivot, row, column, baseFieldName)

Add a new Slicer using PivotTable as data source

ParameterTypeDescription
pivotPivotTablePivotTable object
rowNumberRow index of the cell in the upper-left corner of the Slicer range.
columnNumberColumn index of the cell in the upper-left corner of the Slicer range.
baseFieldNameStringThe name of PivotField in PivotTable.BaseFields

Returns: Number — Number The new add Slicer index

add(pivot, row, column, baseFieldIndex)

Add a new Slicer using PivotTable as data source

ParameterTypeDescription
pivotPivotTablePivotTable object
rowNumberRow index of the cell in the upper-left corner of the Slicer range.
columnNumberColumn index of the cell in the upper-left corner of the Slicer range.
baseFieldIndexNumberThe index of PivotField in PivotTable.BaseFields

Returns: Number — Number The new add Slicer index

add(pivot, destCellName, baseFieldIndex)

Add a new Slicer using PivotTable as data source

ParameterTypeDescription
pivotPivotTablePivotTable object
destCellNameStringThe cell in the upper-left corner of the Slicer range.
baseFieldIndexNumberThe index of PivotField in PivotTable.BaseFields

Returns: Number — Number The new add Slicer index

add(pivot, row, column, baseField)

Add a new Slicer using PivotTable as data source

ParameterTypeDescription
pivotPivotTablePivotTable object
rowNumberRow index of the cell in the upper-left corner of the Slicer range.
columnNumberColumn index of the cell in the upper-left corner of the Slicer range.
baseFieldPivotFieldThe PivotField in PivotTable.BaseFields

Returns: Number — Number The new add Slicer index

add(pivot, destCellName, baseField)

Add a new Slicer using PivotTable as data source

ParameterTypeDescription
pivotPivotTablePivotTable object
destCellNameStringThe cell in the upper-left corner of the Slicer range.
baseFieldPivotFieldThe PivotField in PivotTable.BaseFields

Returns: Number — Number The new add Slicer index

add(table, index, destCellName)

Add a new Slicer using ListObjet as data source

ParameterTypeDescription
tableListObjectListObject object
indexNumberThe index of ListColumn in ListObject.ListColumns
destCellNameStringThe cell in the upper-left corner of the Slicer range.

Returns: Number — Number The new add Slicer index

add(table, listColumn, destCellName)

Add a new Slicer using ListObjet as data source

ParameterTypeDescription
tableListObjectListObject object
listColumnListColumnThe ListColumn in ListObject.ListColumns
destCellNameStringThe cell in the upper-left corner of the Slicer range.

Returns: Number — Number The new add Slicer index

add(table, listColumn, row, column)

Add a new Slicer using ListObjet as data source

ParameterTypeDescription
tableListObjectListObject object
listColumnListColumnThe ListColumn in ListObject.ListColumns
rowNumberRow index of the cell in the upper-left corner of the Slicer range.
columnNumberColumn index of the cell in the upper-left corner of the Slicer range.

Returns: Number — Number The new add Slicer index

add()

Reserved for internal use.

clear()

contains()

Reserved for internal use.

get()

Gets the Slicer by index.

get()

Gets the Slicer by slicer’s name.

get()

Reserved for internal use.

getCount()

indexOf()

Reserved for internal use.

iterator()

remove(slicer)

Remove the specified Slicer

ParameterTypeDescription
slicerSlicerThe Slicer object

removeAt(index)

Deletes the Slicer at the specified index

ParameterTypeDescription
indexNumberThe position index in Slicer collection