Hi
Onderstaande wil voor de 2e opmaak niet weken. er komt geen voorwaardelijke opmaak in de sheet te staan.
Iemand die ziet wat er fout gaat?
Onderstaande wil voor de 2e opmaak niet weken. er komt geen voorwaardelijke opmaak in de sheet te staan.
Iemand die ziet wat er fout gaat?
Code:
With Range("A12:J500")
.FormatConditions.Add Type:=xlExpression, Formula1:="=$H12<0,50*$G12"
With .FormatConditions(1).Interior
.PatternColorIndex = xlAutomatic
.Color = 49407
.TintAndShade = 0
End With
End With
'2e regel voorwaardelijke opmaak
With Range("A12:J500")
.FormatConditions.Add Type:=xlExpression, Formula1:="=AND($G12>0;$H12=0)"
With .FormatConditions(1).Interior
.PatternColorIndex = xlAutomatic
.Color = 65535
.TintAndShade = 0
End With
End With