HI
Paste the following codes in the macro window (alt F11 insert > module)
Sub consolidate()
Dim a As Integer, x As Integer, z As Integer
Range("A2:C10000").ClearContents
For a = 2 To Sheets.Count
x = Worksheets(a).Cells(Rows.Count, 1).End(xlUp).Row
Worksheets(a).Range("A2:B" & x).Copy
z = Worksheets("consolidated").Cells(Rows.Count, 2).End(xlUp).Row + 1
Worksheets("consolidated").Range("A" & z & ":A" & z + x - 2) = Worksheets(a).Name
Worksheets("consolidated").Range("B" & z).PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Next a
MsgBox "Listing is complete."
End Sub
run the macro
Bookmarks