PivotTable.ErrorString property (Excel)

Returns or sets a String value that represents the string displayed in cells that contain errors when the DisplayErrorString property is True.



expression A variable that represents a PivotTable object.


The default value for this property is an empty string ("").


This example displays a hyphen in cells that contain errors in the specified PivotTable report.

With Worksheets(1).PivotTables("Pivot1") 
 .ErrorString = "-" 
 .DisplayErrorString = True 
End With

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.