Sub test()
Application.ScreenUpdating = False
With Sheets("Sheet1")
er = .[J65536].End(3).Row
For r = er To 1 Step -1
If .Cells(r, 1).Interior.ColorIndex = 4 Then Rows(r).Delete
Next r
End With
Application.ScreenUpdating = True
End Sub作者: man65boy 時間: 2016-6-3 19:42
Sub test2()
Application.ScreenUpdating = False
With Sheets("Sheet2")
er = .[I65536].End(3).Row
For r = er To 1 Step -1
If .Cells(r, 10).Interior.ColorIndex = 4 Then Rows(r).Delete
Next r
End With
Application.ScreenUpdating = True
End Sub作者: GBKEE 時間: 2016-6-4 06:11