I have the below macro setup and running, But it will paste the data from the first sheet as many times the number of sheets. Not the data from each sheet to the sheet report.
Can someone please help me why this happens!
Sub apply_autofilter_across_worksheets()
Dim xWs As Worksheet
Dim x As String
On Error Resume Next
For Each xWs In Worksheets
If xWs.Name <> "Report" Then
xWs.Range("A1").AutoFilter 14, ">0"
xWs.Range("A1", Cells(Rows.Count, "A").End(xlUp)).Resize(, 17).Select
Selection.Copy
Worksheets("Report").Activate
Worksheets("Report").Range("x1").Select
Worksheets("Report").Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).PasteSpecial xlPasteValues
End If
Next
End Sub