I have set from conditional formatting in vba to make cell color orange if runner weight <6
. Now, I am stuck at Step (2) below. Where I'd like to input NO
into column Propose? YES/NO
if the cell color is orange. The rest will be input as YES
. I did try find the similar questions but unfortunately still stuck.
Sub sort()
Dim R1 As Range
Dim Condition1 As FormatCondition
'(1) Change cell to orange if runner weight <6g
Set R1 = Range("G18", "G206")
R1.FormatConditions.Delete
Set Condition1 = R1.FormatConditions.Add(xlCellValue, xlLessEqual, "=6")
With Condition1
.Interior.Color = RGB(255, 165, 0)
End With
'(2) Input N to <6g runner weight as not collect runner weight, rest input Y
Range("K18", "K206").ClearContents