rdetreville
New Member
- Joined
- Jul 23, 2014
- Messages
- 38
Hello,
I have a worksheet where conditional formatting is set to highlight cells that appear in a column on another sheet. It works fine, but I have to click into each cell's formula bar and press enter for the conditional formatting to actually activate. The calculation mode is automatic. The data is general and is not text. This is the absolute last thing I need to fix on a project I've been working on day and night for two weeks - can someone please help? Code I used to set the conditional formatting is below, as well as a screen shot showing the cells which are updating conditional formatting and which are not. The ones that are still to the left have not been clicked on yet.
Thank you for your help!!
Conditional formatting code:
I have a worksheet where conditional formatting is set to highlight cells that appear in a column on another sheet. It works fine, but I have to click into each cell's formula bar and press enter for the conditional formatting to actually activate. The calculation mode is automatic. The data is general and is not text. This is the absolute last thing I need to fix on a project I've been working on day and night for two weeks - can someone please help? Code I used to set the conditional formatting is below, as well as a screen shot showing the cells which are updating conditional formatting and which are not. The ones that are still to the left have not been clicked on yet.
Thank you for your help!!
Conditional formatting code:
Code:
Sub revhighlight()
Application.Calculation = xlAutomatic
Dim r As Range
Set r = ActiveWorkbook.Worksheets("RevRec").Range("A3:A500")
r.FormatConditions.Add Type:=xlExpression, Formula1:="=vlookup(A3,'MENU'!$B$4002:$C$4300,1,false)"
r.FormatConditions(r.FormatConditions.Count).SetFirstPriority
With r.FormatConditions(1)
.Interior.PatternColorIndex = xlAutomatic
.Interior.ColorIndex = 6
.Font.ColorIndex = 1
End With
r.FormatConditions(1).StopIfTrue = False
Set r = Nothing
Application.ScreenUpdating = False
Application.ScreenUpdating = True
End Sub
