Hi webcam723
Please update your profile as necessary to properly reflect the exact version(s) of Excel your question relates to.
Members tailor answers based on your Excel version. Your profile does not indicate your version 16.72.
Pls try this code
Sub ConsolidateData()
Dim ws As Worksheet
Dim masterWs As Worksheet
Dim lastRow As Long
Dim rngSource As Range
Dim rngDestination As Range
' Create a new worksheet called "Master" and place it in the second sheet position
Set masterWs = ThisWorkbook.Sheets.Add(After:=ThisWorkbook.Sheets(1))
masterWs.Name = "Master"
' Loop through each worksheet starting from the second sheet
For Each ws In ThisWorkbook.Sheets
If ws.Index <> masterWs.Index Then
' Find the last row in the source worksheet
lastRow = ws.Cells(ws.Rows.Count, "A").End(xlUp).Row
' Set the source range (excluding the header row)
Set rngSource = ws.Range("A2:T" & lastRow)
' Find the last row in the destination sheet
lastRow = masterWs.Cells(masterWs.Rows.Count, "A").End(xlUp).Row
' Set the destination range in the master worksheet
Set rngDestination = masterWs.Range("A" & lastRow + 1)
' Copy the source range to the destination range
rngSource.Copy rngDestination
End If
Next ws
End Sub
Bookmarks