Create a new sheet and Name it MAIN.Copy the header to it.
Run the macro below.
Sub CopyToMain()
Dim Sh As Worksheet
Dim Totros, Totclms As Integer
Application.DisplayAlerts = False
For Each Sh In Worksheets
If Sh.Name <> "MAIN" Then
Totros = Sh.Range("A1").CurrentRegion.Rows.Count
Totclms = Sh.Range("A1").CurrentRegion.Columns.Count
Sh.Range("A1").CurrentRegion.Offset(1, 0).Resize(Totros - 1, Totclms).Copy
With Sheets("MAIN")
If .Range("A2") = "" Then
.Range("A2").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Else
.Range("A2").End(xlDown).Offset(1, 0).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End If
End With
End If
Next Sh
Application.CutCopyMode = False
Application.DisplayAlerts = True
End Sub
Bookmarks