Hi, I could us some help. I have written the VBA below to create master or summary files for each month (only January and February so far, I can add the rest later). Everything works perfectly, except some of the files I am taking information from have multiple worksheets (number of worksheets vary for each workbook - usually between 1 and 5). I have been playing around with (For Each ws In _____) commands but I can't seem to get them right and it keeps sending me to the debugger. Each worksheet has the exact same format as the others, so the range can remain for each sheet. Can anyone help me add a loop that tells it to grab the same information from each sheet before closing the file?

Sub MergeAllWorkbooks()
Dim SummarySheet As Worksheet
Dim FolderPath As String
Dim NRow01 As Long
Dim NRow02 As Long
Dim FileName As String
Dim WorkBk As Workbook
Dim ws As Worksheet
Dim SourceRange As Range
Dim DestRange As Range
Dim LastRow As Long

With Application
.ScreenUpdating = False
.EnableEvents = False
End With

' January - Summary Sheet
' Set the Summary Sheet to the corresponding month's Work Sheet.
Set SummarySheet = ThisWorkbook.Worksheets("January")

' Modify this folder path to point to the files you want to use.
FolderPath = "C:\Users\HP\Desktop\Mott\January\"

' NRow keeps track of where to insert new rows in the destination workbook.
NRow01 = 2

' Call Dir the first time, pointing it to all Excel files in the folder path.
FileName = Dir(FolderPath & "*.xl*")

' Loop until Dir returns an empty string.
Do While FileName <> ""

' Open a workbook in the folder
Set WorkBk = Workbooks.Open(FolderPath & FileName)

' Set the source range:
' Modify this range for your workbooks.
' It can span multiple rows.
LastRow = WorkBk.Worksheets(1).Cells.Find(What:="*", _
After:=WorkBk.Worksheets(1).Cells.Range("A1"), _
SearchDirection:=xlPrevious, _
LookIn:=xlFormulas, _
SearchOrder:=xlByRows).Row
Set SourceRange = WorkBk.Worksheets(1).Range("BB1:BL" & LastRow)

' Set the destination range to start at column A and
' be the same size as the source range.
Set DestRange = SummarySheet.Range("A" & NRow01)
Set DestRange = DestRange.Resize(SourceRange.Rows.Count, SourceRange.Columns.Count)

' Copy over the values from the source to the destination.
DestRange.Value = SourceRange.Value

' Increase NRow so that we know where to copy data next.
NRow01 = NRow01 + DestRange.Rows.Count

' Close the source workbook without saving changes.
WorkBk.Close savechanges:=False

' Use Dir to get the next file name.
FileName = Dir()
Loop

' February - Summary Sheet
' Set the Summary Sheet to the corresponding month's Work Sheet.
Set SummarySheet = ThisWorkbook.Worksheets("February")

' Modify this folder path to point to the files you want to use.
FolderPath = "C:\Users\HP\Desktop\Mott\February\"

' NRow keeps track of where to insert new rows in the destination workbook.
NRow02 = 2

' Call Dir the first time, pointing it to all Excel files in the folder path.
FileName = Dir(FolderPath & "*.xl*")

' Loop until Dir returns an empty string.
Do While FileName <> ""

' Open a workbook in the folder
Set WorkBk = Workbooks.Open(FolderPath & FileName)

' Set the source range:
' Modify this range for your workbooks.
' It can span multiple rows.
LastRow = WorkBk.Worksheets(1).Cells.Find(What:="*", _
After:=WorkBk.Worksheets(1).Cells.Range("A1"), _
SearchDirection:=xlPrevious, _
LookIn:=xlFormulas, _
SearchOrder:=xlByRows).Row
Set SourceRange = WorkBk.Worksheets(1).Range("BB1:BL" & LastRow)

' Set the destination range to start at column A and
' be the same size as the source range.
Set DestRange = SummarySheet.Range("A" & NRow02)
Set DestRange = DestRange.Resize(SourceRange.Rows.Count, SourceRange.Columns.Count)

' Copy over the values from the source to the destination.
DestRange.Value = SourceRange.Value

' Increase NRow so that we know where to copy data next.
NRow02 = NRow02 + DestRange.Rows.Count

' Close the source workbook without saving changes.
WorkBk.Close savechanges:=False

' Use Dir to get the next file name.
FileName = Dir()

Loop
With Application
.ScreenUpdating = True
.EnableEvents = True
End With

End Sub