Hi all,
The conditional formatting on a worksheet is working correctly. =$XFD3="Reject".
Now I want to put this condition formatting in VBA
With Range("H2:S" & LaatsteRij).FormatConditions.Add(Formula1:="=$XFD2=Reject").Interior.Color = 3
End With
But this is not working. By changing it in Formula1:="=$XFD2="Reject"" it gives already in VBA and error (red line/font).
Any ideas how to solve this?
The conditional formatting on a worksheet is working correctly. =$XFD3="Reject".
Now I want to put this condition formatting in VBA
With Range("H2:S" & LaatsteRij).FormatConditions.Add(Formula1:="=$XFD2=Reject").Interior.Color = 3
End With
But this is not working. By changing it in Formula1:="=$XFD2="Reject"" it gives already in VBA and error (red line/font).
Any ideas how to solve this?