Hi!
I have a spreadsheet with several pivottables and some VBA that performs various operations on them, including changing the source of data and resetting the formatting.
One of the parts of the pivottable that I want to reformat is the row subtotals, but I can’t work out how to specify the object.
As an example, I can use the following code to format the rows themselves:
objSheet.PivotTables(1).RowFields("Field1").DataRange.Interior.ColorIndex = 15
How can I do that kind of thing to subtotals?
Hope that’s clear. Thank you to anyone who responds.