Sub copy_and_paste()
Dim rg As Range, rg1 As Range, rg2 As Range, rg3 As Range
n = Range("a65535").End(xlUp).Row
For i = 1 To n
Set rg = Union(Range("B" & i & ":C" & i), Range("U" & i & ":V" & i))
If Range("A" & i).Interior.ColorIndex = 3 And Range("A" & i).Interior.ColorIndex = 36 Then
If rg1 Is noting Then Set rg1 = rg Else Set rg = Union(rg1, rg)
End If
If Range("A" & i).Interior.ColorIndex = 43 And Range("U" & i).Value <> 0 Then
If rg2 Is noting Then Set rg2 = rg Else Set rg = Union(rg2, rg)
End If
If Range("U" & i).Value = 0 Then
If rg3 Is noting Then Set rg3 = rg Else Set rg = Union(rg3, rg)
End If
Next
rg1.Copy Sheets(Sheet2).Range("A8")
rg2.Copy Sheets(Sheet2).Range("I8")
rg3.Copy Sheets(Sheet2).Range("Q8")
End Sub
I think is because this (If Range("U" & i).Value = 0), but I dun know how to edit the codes