The rows from the "DATA" sheet have to be copied to the "Quadrant2" sheet when criteria="Quadrant2" in the "DATA" sheet. Currently there are no rows that match this criteria in the "DATA" sheet. So only the column labels are being copied in each every row in the "Quadrant2" worksheet. How do I fix this issue? Here is the code snippet that I am using currently
Sheets("DATA").Activate
Range("a1:cj" & a).Select
Selection.AutoFilter field:=85, Criteria1:="Quadrant2"
Selection.Copy
Sheets("Quadrant2").Range("a1:cj" & a).PasteSpecial xlPasteValues
Bookmarks