Edit

Share via


PivotFilters.Add2 Method

Definition

Adds new filters to the PivotFilters collection.

public Microsoft.Office.Interop.Excel.PivotFilter Add2 (Microsoft.Office.Interop.Excel.XlPivotFilterType Type, object DataField, object Value1, object Value2, object Order, object Name, object Description, object MemberPropertyField, object WholeDayFilter);
Public Function Add2 (Type As XlPivotFilterType, Optional DataField As Object, Optional Value1 As Object, Optional Value2 As Object, Optional Order As Object, Optional Name As Object, Optional Description As Object, Optional MemberPropertyField As Object, Optional WholeDayFilter As Object) As PivotFilter

Parameters

Type
XlPivotFilterType

Requires an XlPivotFilterType type of filter.

DataField
Object

The field to which the filter is attached.

Value1
Object

Filter value 1.

Value2
Object

Filter value 2.

Order
Object

Order in which the data should be filtered.

Name
Object

Name of the filter.

Description
Object

A brief description of the filter.

MemberPropertyField
Object

Specifies the member property field on which the label filter is based.

WholeDayFilter
Object

Specifies a filter based on days.

Returns

Applies to