No, you're not being dumb, I've made unreasonable assumptions (again
![Frown :( :(](/styles/default/custom/smilies/frown.gif)
)
In your workbook-
ALT+F11 (or Tools, Macros, Visual Basic Editor)
Insert, Module
Paste the code (from the line beginning SUB to the END SUB line (inclusive))
My code makes some more assumptions about your pivot table, I hope these are
OK........ One to note is that the code expects your pivot table to be the
only thing on the sheet - or that anything else appears above it, or to the
left of it.
Select the department names - should be a group of contiguous cells, aligned
vertically (eg A6:A15)
Do ALT+F8 (or Tools, Macros)
Select the name of the Macro - probably the only one there - "LabelCells"
Click Run
Do this on a safe/disposable copy of your workbook, in case it all goes
amiss.
--
HTH
Roger
Shaftesbury (UK)