Ok its still not quite working, ive added the line before it aswell, im adding a conditional format to change the cell color to 255, then it wont delete them, if I manually go in and change the colour to 255 then the code works, so it seems that the condition format is not changing the color correctly??? im really confused now.
Range("B2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.FormatConditions.Add Type:=xlExpression, Formula1:="=$F2=TRUE"
Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
With Selection.FormatConditions(1).Interior
.PatternColorIndex = xlAutomatic
.color = 255
End With
Selection.FormatConditions(1).StopIfTrue = False
With ActiveSheet
For Counter = LR To 2 Step -1
With Cells(Counter, "B")
If .Interior.color = 255 Then
.EntireRow.Delete
End If
End With
Next Counter
End With
End Sub
Bookmarks