as an option
Sub TotalSheets()
Dim wsh, wshList: Application.ScreenUpdating = False
If Not SheetExists("Total") Then Worksheets.Add(Before:=Sheets(1)).Name = "Total"
wshList = Array("Data1", "Data2", "Data3")
With Sheets("Total")
.UsedRange.Clear
Sheets(wshList(0)).Rows(1).Copy .Cells(1, 1)
For Each wsh In wshList
Sheets(wsh).Range("A1").CurrentRegion.Offset(1).Copy .Cells(Rows.Count, 1).End(xlUp).Offset(1)
Next wsh
.Activate: Columns("A:G").AutoFit: Range("A1").Select
End With
Application.CutCopyMode = False: Application.ScreenUpdating = True
End Sub
Bookmarks