I have headers in row 1. I am trying to use VBA to filter sheet 1, copy visible cells from A-D not including the headers, and paste in next available row of sheet 3. The code ive used before isnt working this time and im not sure why. Best guess is this time B-C have drop down lists, not sure if that matters.
Sheets("Sheet 1").Select
Selection.AutoFilter
ActiveSheet.Range("$A$1:$FX$100").AutoFilter Field:=3, Criteria1:= _
"=Inactive", Operator:=xlOr, Criteria2:="=Transferred"
Range("A1:D" & lastRow).Offset(1).SpecialCells(xlCellTypeVisible).Select
Selection.copy
Sheets("Sheet 3").Select
Range("A" & Rows.Count).End(xlUp).Offset(1).Select
ActiveSheet.Paste
Sheets("Sheet 1").Select
Selection.AutoFilter
ActiveSheet.Range("$A$1:$FX$100").AutoFilter Field:=3, Criteria1:= _
"=Inactive", Operator:=xlOr, Criteria2:="=Transferred"
Range("A1:D" & lastRow).Offset(1).SpecialCells(xlCellTypeVisible).Select
Selection.copy
Sheets("Sheet 3").Select
Range("A" & Rows.Count).End(xlUp).Offset(1).Select
ActiveSheet.Paste