Okay,
Few things not sure, for e.g I am not sure if you want to copy item and where the heading on the format should be(row)?
but see the attached and can easily tweak it.
Sorry! I am unable to attach a book (problem with the site).
Plase try this code on the first attached book, not the latest you sent and let me know
Sub ConsolidateSheets1()
Dim ms As Worksheet, ws As Worksheet, LR As Long, i As Long
Application.ScreenUpdating = 0
Application.DisplayAlerts = 0
On Error Resume Next
If Not Evaluate("ISREF(format!A1)") Then
Worksheets.Add(After:=Worksheets(Worksheets.Count)).Name = "format"
Else
Set ms = Sheets("format")
Sheets("format").Range("A2:G" & Rows.Count).ClearContents
End If
Worksheets(1).Range("A4:G4").Copy ms.Range("B1")
For Each ws In ActiveWorkbook.Sheets
With ws
If ws.Name <> "format" Then
LR = .Cells.Find("*", , , , xlByRows, xlPrevious).Row
.Range("A5:F" & LR).Copy ms.Range("B" & Rows.Count).End(xlUp)(2)
Rng = .Cells.Find(What:="*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row - 4
ms.Cells(Rows.Count, 1).End(xlUp).Offset(1).Resize(Rng) = .Cells(1, 1)
End If
End With
Application.CutCopyMode = 0
Next ws
With ms
'.Range("C2:C" & Rows.Count - 5).NumberFormat = "mm/dd/yyyy"
.Cells.Columns.EntireColumn.AutoFit
End With
Application.ScreenUpdating = 1
Application.DisplayAlerts = 1
End Sub
Bookmarks