Hello
I trying to add conditional format to a multiple sheets in the same cells
It should appear like this in each sheet:
I created this code in module, but something wrong here... Probably with the formula that I need to add...
Can someone help to fix it ?
I have 52 sheets with names like january 04-09, january 11-16 etc... I also have a list (by formula) of their names if it can help, like this:
january 04-09
january 11-16
The cells in each sheet is:
The color is: #00B0F0 /RGB(0, 176, 240)
Thanks
I trying to add conditional format to a multiple sheets in the same cells
It should appear like this in each sheet:
I created this code in module, but something wrong here... Probably with the formula that I need to add...
VBA Code:
Option Explicit
Sub AddConForm()
Dim rng As Range
Set rng = ThisWorkbook.Sheets("januar 04-09,januar 11-16").Range("$D$7:$H$12,$D$16:$H$21,$D$25:$H$30,$D$34:$H$39,$D$43:$H$48,$D$52:$H$54")
With rng
.FormatConditions.Add Type:=xlExpression, Formula1:="=AND(OR(D7=$H$3,D7=$H$3&"*",D7=$H$3&"**"),D7>"")"
.Interior.Color = RGB(0, 176, 240)
End With
End Sub
I have 52 sheets with names like january 04-09, january 11-16 etc... I also have a list (by formula) of their names if it can help, like this:
january 04-09
january 11-16
The cells in each sheet is:
Code:
=$D$7:$H$12,$D$16:$H$21,$D$25:$H$30,$D$34:$H$39,$D$43:$H$48,$D$52:$H$54
Thanks