CalculatedFields Interface 

A collection of PivotField objects that represents all the calculated fields in the specified PivotTable report.

Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in microsoft.office.interop.excel.dll)

Usage

Public Class alculatedFieldsImplementation
    Implements CalculatedFields
End Class
Dim alculatedFieldsImplementation1 As New alculatedFieldsImplementation()

Syntax

Public Interface CalculatedFields
public interface CalculatedFields
public interface class CalculatedFields
public interface CalculatedFields
public interface CalculatedFields

Remarks

For example, a report that contains Revenue and Expense fields could have a calculated field named “Profit” and defined as the amount in the Revenue field minus the amount in the Expense field.

For OLAP data sources, you cannot set this collection, and it always returns Nothing.

Use the CalculatedFields method to return the CalculatedFields collection.

Use CalculatedFields(index), where index is the specified field’s name or index number, to return a single PivotField object from the CalculatedFields collection.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Microsoft.Office.Interop.Excel Namespace

Other Resources

CalculatedFields Members