VBA/Macro to Combine worksheets in a workbook into 1 sheet


New Member
Jun 14, 2009
Hello Excel Experts:

I have search this forum before i made a new post since none of the threads is exactly working for my problem.

I have an excel file which contains costed bills of materials (BOM) of products, each worksheet is named by its SKU/model number.

My data has consistent/fixed columns from A to R
Data starts from row 41 (with headers) , 42 without headers. Some data are within rows 1 to 40 but these should be ignored.
Row numbers vary per worksheet

Appreciate your help to copy and paste/ combine all BOMs data into a separate spreadsheet in the same worksbook.
The headers for the second and succeeding worksheets need not to be copied.

also, the worksheet name must be copied in the last column "S" so i can know where is the data is coming from which worksheet.

The format of each worksheet should be carry over , not paste values. (rows are color coded by the levels in the BOm)

Thank you very much for your help guys.


Forum statistics

Latest member

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...