Sub AllTrackRpt_1_M2L()
Dim st1a As Long, a As Long '<-Dim j As Long, lr As Long
Dim st1b As Long, b As Long
Dim st1c As Long, c As Long
Dim st1d As Long, d As Long
Dim st1e As Long, e As Long
Dim st1f As Long, f As Long
For st1a = 4 To 51 '<-For j = 4 To 51
For st1b = 326 To 331
For st1c = 326 To 332
For st1d = 326 To 333
For st1e = 326 To 329
For st1f = 326 To 328
If Cells(st1a, 359).Value > 1 And Cells(st1a, 359).Value < 36 Then _
Cells(Rows.Count, 147).End(xlUp).Offset(1).Resize(, 50).Value = Cells(st1a, 359).Resize(, 50).Value
Next st1a
a = Range("EV" & Rows.Count).End(xlUp).Row
With Range("EQ2:GN" & a)
.Sort key1:=[EV3], order1:=xlDescending, Header:=xlYes
End with
Next
If Cells(st1b, 359).Value > 1 And Cells(st1b, 359).Value < 36 Then _
Cells(Rows.Count, 478).End(xlUp).Offset(1).Resize(, 22).Value = Cells(st1b, 359).Resize(, 22).Value
Next st1b
b = Range("RO" & Rows.Count).End(xlUp).Row
With Range("RJ2:SE" & b)
.Sort key1:=[RO3], order1:=xlDescending, Header:=xlYes
End with
Next
End with
Next
If Cells(st1c, 359).Value > 1 And Cells(st1c, 359).Value < 36 Then _
Cells(Rows.Count, 566).End(xlUp).Offset(1).Resize(, 22).Value = Cells(st1c, 359).Resize(, 22).Value
Next st1c
c = Range("UY" & Rows.Count).End(xlUp).Row
With Range("UT2:VO" & c)
.Sort key1:=[UY3], order1:=xlDescending, Header:=xlYes
End with
Next
End with
Next
If Cells(st1d, 359).Value > 1 And Cells(st1d, 359).Value < 36 Then _
Cells(Rows.Count, 654).End(xlUp).Offset(1).Resize(, 22).Value = Cells(st1d, 359).Resize(, 22).Value
Next st1d
d = Range("YI" & Rows.Count).End(xlUp).Row
With Range("YD2:YY" & d)
.Sort key1:=[YI3], order1:=xlDescending, Header:=xlYes
End with
Next
End with
Next
If Cells(st1e, 359).Value > 1 And Cells(st1e, 359).Value < 36 Then _
Cells(Rows.Count, 830).End(xlUp).Offset(1).Resize(, 22).Value = Cells(st1e, 359).Resize(, 22).Value
Next st1e
e = Range("AFC" & Rows.Count).End(xlUp).Row
With Range("AEX2:GN" & e)
.Sort key1:=[AFC3], order1:=xlDescending, Header:=xlYes
End with
Next
End with
Next
If Cells(st1f, 359).Value > 1 And Cells(st1f, 359).Value < 36 Then _
Cells(Rows.Count, 742).End(xlUp).Offset(1).Resize(, 22).Value = Cells(st1f, 359).Resize(, 22).Value
Next st1f
f = Range("ABS" & Rows.Count).End(xlUp).Row
With Range("ABN2:ACI" & f)
.Sort key1:=[ABS3], order1:=xlDescending, Header:=xlYes
End with
Next
End With
End Sub
Thank you in advance jaslake.
Bookmarks