just saw something, Sara...
the VBA code may be looking for files with the .xls extension, but 1 of the files that you uploaded was an .xlsx
again, I could be swinging in the wrong direction, but i do know vba can be very specific and therefore very tricky.
Yes I did, and Okay thank you!Have you put YOUR Dir/path in? And the correct file name?
If you want VBA you would get better help if you posted in the VBA section of the forum.
.
Sub GetSheets1()
Dim path As String
path = CreateObject("Wscript.Shell").SpecialFolders("Desktop") & Application.PathSeparator & "FLAVA Database 2\"
Filename = Dir(path & "*.xls")
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 False
Filename = Dir()
Loop
End Sub
Option Explicit
Sub CombineFiles()
Dim Path As String
Dim FileName As String
Dim Wkb As Workbook
Dim WS As Worksheet
Application.EnableEvents = False
Application.ScreenUpdating = False
Path = "C:\Users\user\Desktop\Sara" 'Change as needed
FileName = Dir(Path & "\*.xls", vbNormal)
Do Until FileName = ""
Set Wkb = Workbooks.Open(FileName:=Path & "\" & FileName)
For Each WS In Wkb.Worksheets
WS.Copy After:=ThisWorkbook.Sheets(ThisWorkbook.Sheets.Count)
Next WS
Wkb.Close False
FileName = Dir()
Loop
Application.EnableEvents = True
Application.ScreenUpdating = True
End Sub