A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Glad it worked... I have reiterated the code with the changes required for the RAG cells but if it is reuiqred for the H and NS cells just copy the relevant lines as required and amend.
Private Sub Worksheet_Calculate()
ActiveSheet.PivotTables("PivotTable1").PivotSelect "'R'", _
xlDataAndLabel, True
Selection.Font.Bold = True Selection.HorizontalAlignment = xlCenter
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 255
.TintAndShade = 0
.PatternTintAndShade = 0
End With
ActiveSheet.PivotTables("PivotTable1").PivotSelect "'A'", _
xlDataAndLabel, True
Selection.Font.Bold = True Selection.HorizontalAlignment = xlCenter
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 33023
.TintAndShade = 0
.PatternTintAndShade = 0
End With
ActiveSheet.PivotTables("PivotTable1").PivotSelect "'G'", _
xlDataAndLabel, True
Selection.Font.Bold = True Selection.HorizontalAlignment = xlCenter With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 65280
.TintAndShade = 0
.PatternTintAndShade = 0
End With
End Sub
Best of luck!
Rik_UK Please mark the message or messages that answer your question as the "Answer" or vote if a reply has been helpful.