Share via


PivotFormulas.Item Method

Excel Developer Reference

Returns a single object from a collection.

Syntax

expression.Item(Index)

expression   A variable that represents a PivotFormulas object.

Parameters

Name Required/Optional Data Type Description
Index Required Variant The name or index number for the object.

Return Value
A PivotFormula object contained by the collection.

Example

This example displays the first formula for PivotTable one on worksheet one.

Visual Basic for Applications
  MsgBox Worksheets(1).PivotTables(1).PivotFormulas.Item(1).Formula

See Also