Sub cons()
Dim sh As Worksheet, lr As Long, lc As Long, newSh As Worksheet
Set newSh = Sheets.Add After:=Sheets(ThisWorkbook.Sheets.Count)
ThisWorkbook.Sheets(1).Rows(1).Copy newSheet.Range("A1")
For Each sh In ThisWorkbook.Sheets
lc = sh.Cells.Find(What:="*", After:=sh.Range("A1"), LookAt:=xlPart, LookIn:=xlFormulas, _
SearchOrder:=xlByColumns, SearchDirection:=xlPrevious, MatchCase:=False).Column
lr = sh.Cells.Find(What:="*", After:=sh.Range("A1"), LookAt:=xlPart, LookIn:=xlFormulas, _
SearchOrder:=xlByRows, SearchDirection:=xlPrevious, MatchCase:=False).Row
With sh
If sh.Name <> newSh.Name Then
.Range(.Cells(2, 1), .Cells(lr, lc)).Copy newSh.Cells(Rows.Count, 1).End(xlUp)(2)
End If
End With
Next
newSh.Copy
fName = InputBox("Enter a file name and file with file extension. Example: Consolidated.xlsx", "File Name")
ActiveWorkbook.SaveAs fName
End Sub