• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to merge sheets in One Excel file

Hi,

Please find the attached file.
I want to merge all the sheets named " A, B, C, D, E" to sheet 1.
Is there any macro which can help me in merging all the sheets

This is because i am having 100 of sheets with different name.

Regards
Raj
 

Attachments

  • New Microsoft Office Excel Worksheet.xlsx
    16.4 KB · Views: 7
Hi !

A demonstration according to your sample workbook :​
Code:
Sub Demo()
    Application.ScreenUpdating = False
For W& = 2 To Worksheets.Count
    Worksheets(W).UsedRange.Offset(-(W > 2)).Copy Sheet1.Cells(R& + 1, 1)
    R = Sheet1.Cells(1).End(xlDown).Row
Next
    Application.ScreenUpdating = True
End Sub
Do you like it ? So thanks to click on bottom right Like !
 
Hi Marc,

Thanks a lot. Can you please elaborate the same as because I am unable to see the sheets name A,B,C,D,E.

Thanks
Raj
 
Back
Top