PivotTable.VacatedStyle property (Excel)
Returns or sets the style applied to cells vacated when the PivotTable report is refreshed. The default value is a null string (no style is applied by default). Read/write String.
Syntax
expression.VacatedStyle
expression A variable that represents a PivotTable object.
Example
This example sets the vacated cells in the PivotTable report to the BlackAndBlue style.
Worksheets(1).PivotTables("Pivot1").VacatedStyle = "BlackAndBlue"
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.