hello
i have this code but not work as what i want it delete all of rows while i specified the condition is when column f contains 2/3,1/3 only delete rows theses from b2:i1000 without effect on column a
Code
Sub Test()
Application.ScreenUpdating = False
Dim i As Long
Dim Lastrow As Long
Lastrow = Cells(Rows.Count, "f").End(xlUp).Row
For i = Lastrow To 1 Step -1
If Cells(i, "f").Value = "1/3" Or Cells(i, "f").Value = "2/3" Then Range("B2:G1000").Delete Shift:=xlUp
Next
Application.ScreenUpdating = True
End Sub
Display More