Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 1.15 KB

Excel.PivotTable.DisplayNullString.md

File metadata and controls

50 lines (31 loc) · 1.15 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
PivotTable.DisplayNullString property (Excel)
vbaxl10.chm235105
vbaxl10.chm235105
Excel.PivotTable.DisplayNullString
ad2ce480-9fc9-d069-5526-4f819e236967
05/08/2019
medium

PivotTable.DisplayNullString property (Excel)

True if the PivotTable report displays a custom string in cells that contain null values. The default value is True. Read/write Boolean.

Syntax

expression.DisplayNullString

expression A variable that represents a PivotTable object.

Remarks

Use the NullString property to set the custom null string.

Example

This example causes the PivotTable report to display "NA" in cells that contain null values.

With Worksheets(1).PivotTables("Pivot1") 
 .NullString = "NA" 
 .DisplayNullString = True 
End With

This example causes the PivotTable report to display 0 (zero) in cells that contain null values.

Worksheets(1).PivotTables("Pivot1").DisplayNullString = False

[!includeSupport and feedback]