Sub consoSheets()
Dim sht As Worksheet, shtDest As Worksheet, lastRow As Long
application.ScreenUpdating = False
Set shtDest = ActiveWorkbook.Sheets("Estimate Details")
For Each sht In ActiveWorkbook.Worksheets
If Right(Trim(sht.Name), 8) = "Estimate" And Left(Trim(sht.Name), 7) <> "Summary" Then
lastRow = sht.Cells(sht.Rows.Count, 2).End(xlUp).Row
If lastRow > 2 Then
sht.range("B3:V" & lastRow).Copy
lastRow = shtDest.Cells(sht.Rows.Count, 2).End(xlUp).Row
shtDest.Cells(shtDest.Rows.Count, 1).End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValues
shtDest.Cells(shtDest.Rows.Count, 1).End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteFormats
End If
End If
Next sht
application.ScreenUpdating = True
End Sub
|