With the help of google I created this module to merge multiple Excel files into one file. Only problem is, it creates a new sheet for each file. Can someone tell me how to edit this code so that it merges into one single spreadsheet? (all files are same number of columns with same headings). I am using Excel 2010
Thank You,
Dawn
Sub GetSheets()
Path = "C:\Users\Dawn\Documents\Mass Blast Emails Aug 2013\"
Filename = Dir(Path & "*.xlsx")
Do While Filename <> ""
Workbooks.Open Filename:=Path & Filename, ReadOnly:=True
For Each Sheet In ActiveWorkbook.Sheets
Sheet.Copy After:=ThisWorkbook.Sheets(1)
Next Sheet
Workbooks(Filename).Close
Filename = Dir()
Loop
End Sub
Thank You,
Dawn
Sub GetSheets()
Path = "C:\Users\Dawn\Documents\Mass Blast Emails Aug 2013\"
Filename = Dir(Path & "*.xlsx")
Do While Filename <> ""
Workbooks.Open Filename:=Path & Filename, ReadOnly:=True
For Each Sheet In ActiveWorkbook.Sheets
Sheet.Copy After:=ThisWorkbook.Sheets(1)
Next Sheet
Workbooks(Filename).Close
Filename = Dir()
Loop
End Sub