Sub main()
For i = 2 To 50
For j = 2 To 6
Sheet1.Cells(j, i).Select
If Selection.Interior.ColorIndex = 2 Then
Cells(j, i) = ""
End If
Next j
Next i
End Sub
Sub main()
For i = 2 To 50
For j = 24 To 266
Sheet1.Cells(j, i).Select
If Selection.Interior.ColorIndex <= 2 Then
Cells(j, i) = ""
End If
Next j
Next i
End Sub