Hi,
I have a spreadsheet with multiple sheets that I need to combine into one. These sheets have reports with the exact same structure, using columns A-L and no headers. I want to copy the data into a sheet called "ALL" which does have headers, so it would need to start in row two.
Anyway, this is what I came up with but it made Excel not responsive. I'm sure there's a better way and I'd love some suggestions!
I have a spreadsheet with multiple sheets that I need to combine into one. These sheets have reports with the exact same structure, using columns A-L and no headers. I want to copy the data into a sheet called "ALL" which does have headers, so it would need to start in row two.
Anyway, this is what I came up with but it made Excel not responsive. I'm sure there's a better way and I'd love some suggestions!
Code:
Option Explicit
Sub JobID()
Application.ScreenUpdating = False
Dim ws As Worksheet
For Each ws In Worksheets
If ws.Name <> "DASHBOARD" And ws.Name <> "ALL" Then
With ws
Range("A1:L1").Select
Range(Selection, Selection.End(x1Down)).Select
Selection.Copy
Sheets("ALL").Select
Cells(Rows.Count, "A").End(x1Up).Offset(1).Select
End With
End If
Next ws
Application.ScreenUpdating = True
End Sub