Sub ConditionalCopy()
Dim SourceSheet As Worksheet
Dim TargetSheet As Worksheet
Dim N As Long
Const Min = 3
Set SourceSheet = ActiveSheet
Sheets.Add
Set TargetSheet = ActiveSheet
SourceSheet.Activate
SourceSheet.Rows("2:3").Copy Destination:=TargetSheet.Rows(1)
For N = 4 To Cells(Rows.Count, 1).End(xlUp).Row
If Cells(N, 5) >= Min And Cells(N, 5) <> "" Then
Range(Cells(N, 1), Cells(N, 4)).Copy Destination:=TargetSheet.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0)
End If
Next N
For N = 4 To Cells(Rows.Count, 6).End(xlUp).Row
If Cells(N, 10) >= Min And Cells(N, 10) <> "" Then
Range(Cells(N, 6), Cells(N, 9)).Copy Destination:=TargetSheet.Cells(Rows.Count, 6).End(xlUp).Offset(1, 0)
End If
Next N
For N = 4 To Cells(Rows.Count, 12).End(xlUp).Row
If Cells(N, 16) >= Min And Cells(N, 16) <> "" Then
Range(Cells(N, 12), Cells(N, 15)).Copy Destination:=TargetSheet.Cells(Rows.Count, 12).End(xlUp).Offset(1, 0)
End If
Next N
For N = 4 To Cells(Rows.Count, 17).End(xlUp).Row
If Cells(N, 21) >= Min And Cells(N, 21) <> "" Then
Range(Cells(N, 17), Cells(N, 20)).Copy Destination:=TargetSheet.Cells(Rows.Count, 17).End(xlUp).Offset(1, 0)
End If
Next N
For N = 4 To Cells(Rows.Count, 23).End(xlUp).Row
If Cells(N, 27) >= Min And Cells(N, 27) <> "" Then
Range(Cells(N, 23), Cells(N, 26)).Copy Destination:=TargetSheet.Cells(Rows.Count, 23).End(xlUp).Offset(1, 0)
End If
Next N
For N = 4 To Cells(Rows.Count, 28).End(xlUp).Row
If Cells(N, 32) >= Min And Cells(N, 32) <> "" Then
Range(Cells(N, 28), Cells(N, 31)).Copy Destination:=TargetSheet.Cells(Rows.Count, 28).End(xlUp).Offset(1, 0)
End If
Next N
End Sub
Bookmarks