1. Метод копирования
Sub test()
Dim Ws As Worksheet, toWs As Worksheet
Dim vDB As Variant, rngDB As Range
Dim Target As Range
Dim i As Long
Set Ws = Sheets("Sheet1")
Set toWs = Sheets("Cases in QA Status")
With Ws
vDB = .Range("m2", .Range("m" & Rows.Count).End(xlUp))
End With
For i = 1 To UBound(vDB, 1)
If vDB(i, 1) = "Yes" Then 'vDB(i, 1) = True then
Set rngDB = Ws.Range("ad2").Resize(199).Offset(, i - 1)
Set Target = toWs.Range("al" & Rows.Count).End(xlUp).Offset(1, 0)
rngDB.Copy Target
End If
Next i
End Sub
2. Использование массива
Sub test2()
Dim Ws As Worksheet, toWs As Worksheet
Dim vDB As Variant, vData As Variant
Dim Target As Range
Dim i As Long
Set Ws = Sheets("Sheet1")
Set toWs = Sheets("Cases in QA Status")
With Ws
vDB = .Range("m2", .Range("m" & Rows.Count).End(xlUp))
End With
For i = 1 To UBound(vDB, 1)
If vDB(i, 1) = "Yes" Then 'vDB(i, 1) = True then
vData = Ws.Range("ad2").Resize(199).Offset(, i - 1)
Set Target = toWs.Range("al" & Rows.Count).End(xlUp).Offset(1, 0)
Target.Resize(199) = vData
End If
Next i
End Sub