Format only one field in pivot table

David Schaleger

Board Regular
Joined
Dec 6, 2010
Messages
55
How can I format just one field in a pivot table with multiple fields?

I have the following pivot table in Excel 2007:
Layout: Compact
Style: Medium 9
Row Labels: Group, Color, Batch (top to bottom in that order)
Column Labels: Method, Analyte (top to bottom in that order)
Values: Sum of Result

This style (Med 9) displays "Group" as highlighted bold (black) font, "Color" as bold (black) font, and "Batch" as regular (black) font. I want all of the "Batch" rows (labels and data) to be formatted differently (blue font instead of black) from this canned pivot table style.

I attempted with VBA, but I can't figure out how to reference either/or the labels and/or data for just this field/item (or whatever the heck it is) for Batch. I also couldn't figure out how to do it with conditional formatting or editing/creating a style.

If there's a non-VBA way to do this, I'd love to hear it. But, even if there is, I'd also REALLY love to learn how to do it with VBA.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,203,752
Messages
6,057,153
Members
444,908
Latest member
Jayrey

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top