Option Explicit
Sub Button1_Click()
Dim x As Workbook
Dim Ws As Worksheet
Dim lr As Long, lrS As Long
Dim s1 As Worksheet
Dim sheetsToSkip() As Variant
Dim i As Integer
Dim Exclude As String
Dim lRow As Long
'Consolidate All sheets
Set s1 = Sheets("ur first sheet name")
s1.Range("A2:T" & Rows.Count).End(xlUp).Rows.ClearContents 'select till range u need
For Each Ws In Worksheets
If Ws.Name <> "ur first sheet name" Then
lr = Ws.Range("B" & Rows.Count).End(xlUp).Row
lrS = s1.Range("A" & Rows.Count).End(xlUp).Row
Ws.Range("A2:T" & lr).Copy ' select till range u need
s1.Range("A" & lrS + 1).PasteSpecial xlPasteFormats, , , False
s1.Range("A" & lrS + 1).PasteSpecial xlPasteAll, , , False
End If
Next Ws
Application.ScreenUpdating = False
Application.DisplayAlerts = False
For Each Ws In Application.ActiveWorkbook.Worksheets
If Ws.Name <> "ur first sheet name" Then
Ws.Delete
End If
Next
End Sub