Compartilhar via


IPivotTable.AddDataField Method

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

Syntax

'Declaration
Function AddDataField ( _
    Field As Object, _
    Caption As Object, _
    Function As Object _
) As PivotField
'Usage
Dim instance As IPivotTable
Dim Field As Object
Dim Caption As Object
Dim Function As Object
Dim returnValue As PivotField

returnValue = instance.AddDataField(Field, _
    Caption, Function)
PivotField AddDataField(
    Object Field,
    Object Caption,
    Object Function
)

Parameters

Return Value

Type: Microsoft.Office.Interop.Excel.PivotField

See Also

Reference

IPivotTable Interface

IPivotTable Members

Microsoft.Office.Interop.Excel Namespace