Does anyone know a VBA code in 2 steps in excel
1 Open folder path
2 Click button "Merge all sheets in 1 file" - Merge all worksheets from multiple workbooks (3 files containing various number of sheets and different name some might be 2 or 3 or 4 sheets each. Note if sheet name are same e.g. sheet1 and another file contain sheet1 and merge you see output sheet1, sheet1(2) not overwrite)
For example :
1 folder contains 3 excel workbook files.
Excel workbook file 1 contains 2 sheets ("A","B")
Excel workbook file 2 contains 3 sheets ("B","D","E")
Excel workbook file 3 contains 2 sheets ("G","J")
Output:
New Excel workbook called "Mergeallsheets" with 7 sheets ("A","B","B(2)","D","E","G","J")
Message box say "Merge all completed".
Thank you in advance for any help.
Mr Singh
1 Open folder path
2 Click button "Merge all sheets in 1 file" - Merge all worksheets from multiple workbooks (3 files containing various number of sheets and different name some might be 2 or 3 or 4 sheets each. Note if sheet name are same e.g. sheet1 and another file contain sheet1 and merge you see output sheet1, sheet1(2) not overwrite)
For example :
1 folder contains 3 excel workbook files.
Excel workbook file 1 contains 2 sheets ("A","B")
Excel workbook file 2 contains 3 sheets ("B","D","E")
Excel workbook file 3 contains 2 sheets ("G","J")
Output:
New Excel workbook called "Mergeallsheets" with 7 sheets ("A","B","B(2)","D","E","G","J")
Message box say "Merge all completed".
Thank you in advance for any help.
Mr Singh