PivotTable.ConvertToFormulas method (Excel)

The ConvertToFormulas method is used for converting a PivotTable to cube formulas. Read/write Boolean.

Syntax

expression.ConvertToFormulas (ConvertFilters)

expression A variable that represents a PivotTable object.

Parameters

Name Required/Optional Data type Description
ConvertFilters Required Boolean Contains True or False to indicate the state of the ReportFilter area.

Remarks

The argument controls whether or not to convert the ReportFilter area of the PivotTable.

Example

In the following example, the ReportFilter area is not converted.

Sub ConvertToCubeFormulas() 
 ActiveSheet.PivotTables("PivotTable1").ConvertToFormulas False 
End Sub

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.