Gurus,
i have a excel challenge and i tried asking some gurus here at my work, and No one was able to solve this.
i need a vba code to put in the workbook named MASTER
master workbook is located in C:/Myfiles
now there are multiple workbooks in the same directory and all of these workbooks have same numbers of identical sheets that has same names, same field structure; same column headings, and the same column order .
now the VBA code should combine all of these workbooks sheets into its related sheet into one workbook
for example lets say that there are 12 workbooks having 5 sheets sheet1 sheet2 sheet3 sheet4 and supposedly each of these worksheets has 10 rows of data excluding the header row.
when i merge them with VBA then my merged single workbook file will have sheet1 sheet2 sheet3 sheet4 each of these sheets in the merged file idealy should have 120 rows excluding the header row, becuase we had 12 workbooks.
the only addition would be that i need one new column added to the end of columns on each of the sheets in merged file that shows the original workbook name for those rows.
any help is appreciated
Bookmarks