Option Explicit
Sub ConsolidateMultiplFile()
Dim FileNames, File
Dim lastrow As Long
FileNames = Application.GetOpenFilename(Filefilter:="Excel File (*.xlsx), *.xlsx", MultiSelect:=True)
For Each File In FileNames
With ThisWorkbook.Sheets(1)
lastrow = .Range("A" & .Cells.Rows.Count).End(xlUp).Row
End With
Workbooks.Open File
With ActiveSheet
.UsedRange.Copy ThisWorkbook.Sheets(1).Range("A" & lastrow + 1)
.Parent.Close False
If lastrow > 1 Then
ThisWorkbook.Sheets(1).Rows(lastrow + 1).Delete xlShiftUp
End If
End With
Next File
Sheets(1).Copy
ActiveWorkbook.SaveAs ThisWorkbook.Path & "Importable CSV File", xlCSV
ActiveWorkbook.Close True
ThisWorkbook.Sheets(1).Cells.Clear
MsgBox "File Consolidation Complete"
End Sub