Hi Carcel,
Based on this recent post by me for A.Patel, try this:
Option Explicit
Sub Macro1()
'Written by Trebor76
'Visit my website www.excelguru.net.au
'Starting at Row 2, copy all records from the 'PO_1' and 'PO_2' tabs for Col.'s A to F to next available row in Col. A of the 'Totals' tab.
'http://www.excelforum.com/excel-programming-vba-macros/964890-macro-to-merge-2-sheets-to-one-and-keep-header-row.html
Dim wstMySheet As Worksheet
Dim rngCell As Range
Dim lngEndRow As Long, _
lngPasteRow As Long
Application.ScreenUpdating = False
For Each wstMySheet In ThisWorkbook.Sheets
If wstMySheet.Name <> "Totals" Then
lngEndRow = wstMySheet.Cells(Rows.Count, "A").End(xlUp).Row
lngPasteRow = Sheets("Totals").Cells(Rows.Count, "A").End(xlUp).Row + 1
Range(wstMySheet.Cells(2, "A"), wstMySheet.Cells(lngEndRow, "F")).Copy Destination:=Sheets("Totals").Cells(lngPasteRow, "A")
End If
Next wstMySheet
Application.ScreenUpdating = True
MsgBox "All applicable rows have now been copied to the ""Totals"" tab.", vbInformation, "Excel Guru"
End Sub
HTH
Robert
Bookmarks