Am not sure how to ask this question, for am now at "wits end."
The following code does not set the cells to the specified settings:
However, if add a msgbox after the last End With, stop the code from running, view the cells, they are formatted correctly.
Am clueless as to what the problem is!
Thank for any suggestions!
The following code does not set the cells to the specified settings:
Code:
With Worksheets("Threshold").Range("$F$27:$G$27")
.FormatConditions.Delete
.FormatConditions.Add Type:=xlCellValue, Operator:=xlGreater, _
Formula1:="24999"
.FormatConditions(1).Interior.ColorIndex = 6
End With
With Worksheets("Threshold").Range("$H$27")
.FormatConditions.Delete
.FormatConditions.Add Type:=xlCellValue, Operator:=xlGreater, _
Formula1:="9999"
.FormatConditions(1).Interior.ColorIndex = 6
End With
However, if add a msgbox after the last End With, stop the code from running, view the cells, they are formatted correctly.
Am clueless as to what the problem is!
Thank for any suggestions!