• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Pivot table background color when collapsing some rows

Thomas Kuriakose

Active Member
Dear Sirs,

On collapsing some rows in a pivot table the format of the empty cells does not match with the pivot table format.

Is there a way to retain the background in the same color as the pivot table on collapsing row data.

upload_2015-9-21_21-43-41.png

Thank you so much,

with regards,
thomas
 
Hi ,

I have no idea , but my thinking would be that the boundary of the pivot table extends only till the Grand Total row / column , beyond which is the normal worksheet area.

Thus , the area you have indicated in your post could not be colored the same way as your pivot table ; it would be colored the way the rest of the worksheet is colored.

Narayan
 
Respected Sir,

Thank you for this information.

I selected the whole worksheet and set the fill color value as grey, removed the grid lines and expected the extended rows to have the grey color, but it becomes white when the rows are collapsed.

The file I have is greater than 2 MB.

I will try to reduce the size and send the same for your perusal.

Thanks once again,

with regards,
thomas
 
Hi Thomas ,

I have seen the issue. I think the only solution is to use VBA , on the lines of :
Code:
Private Sub Worksheet_PivotTableUpdate(ByVal Target As PivotTable)
            Range("A3:D20").Interior.Color = RGB(200, 200, 200)
End Sub
Alter the specified range to suit.

Narayan
 
Back
Top