Dim
ws
As
Worksheet
Dim
s_Main
As
String
Dim
nRow
As
Long
Dim
Last_row
As
Long
Dim
i
As
Long
Dim
Table
As
Variant
s_Main =
"Overview"
Last_row = Worksheets(s_Main).Cells(Rows.Count, 1).
End
(xlUp).Row
Worksheets(s_Main).Range(
"A2:P"
& Last_row).ClearContents
For
Each
ws
In
Worksheets
If
ws.Name = s_Main
Then
GoTo
Change_ws
Else
nRows = ws.Cells(Rows.Count, 1).
End
(xlUp).Row
ReDim
Table(nRows, 16)
Table = ws.Range(
"A1:P"
& nRows)
For
i = 1
To
nRows
If
Table(i, 2) =
"Sep. 20"
Or
Table(i, 2) =
"Oct. 20"
Or
Table (i,2) =
"Nov. 20"
Then
Last_row = Worksheets(s_Main).Cells(Rows.Count, 1).
End
(xlUp).Row
ws.Range(
"A"
& i &
":P"
& i).Copy Worksheets(s_Main).Range(
"A"
& Last_row)(2)
End
If
Next
i
End
If
Change_ws: