Just wondering if anyone can help - I cant seem to work out how to apply conditional formatting to the entire workbook as opposed to the sheet that I am currently working on....
Conditional formatting for entire workbook
(2 posts) (2 voices)-
Posted 5 months ago #
-
I am not an MVP, but you could use vba to cycle through the sheets and apply conditional formating...
For each sheet in workbook With Range("$R39:$R" & LastRow) .Select .FormatConditions.Delete 'remove this line if you wish .FormatConditions.Add Type:=xlExpression, Formula1:="=COUNTIF($R39,""?*"")" .FormatConditions(1).Interior.PatternColorIndex = xlAutomatic .FormatConditions(1).Interior.ColorIndex = 3 .FormatConditions(1).Interior.TintAndShade = 0 .FormatConditions.Add Type:=xlExpression, Formula1:="=COUNTIF($R39,"">0"")" .FormatConditions(2).Interior.PatternColorIndex = xlAutomatic .FormatConditions(2).Interior.ColorIndex = 3 .FormatConditions(2).Interior.TintAndShade = 0 End With Next SheetPosted 4 months ago #
Reply
You must log in to post.

