PivotTable.PivotFormulas property (Excel)

Returns a PivotFormulas object that represents the collection of formulas for the specified PivotTable report. Read-only.

Syntax

expression.PivotFormulas

expression A variable that represents a PivotTable object.

Remarks

For OLAP data sources, this property returns an empty collection.

Example

For Each pf in ActiveSheet.PivotTables(1).PivotFormulas 
 r = r + 1 
 Cells(r, 1).Value = pf.Formula 
Next

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.