I have 4 excel files and i want to combine these 4 files into a single workbook .. my constraints is each work sheet should go to a seperate sheet or tab with sheet name ..
my final workbook should have 4 tabs(sheets) each for one.
The easiest way would be to save the input files as XML Spreadsheet format instead of XLS. Then create a new XML File as follows:
Remove the tags <Workbook> </Workbook> from all the input files.
After step - 1, Extract all the remaining contents of the input files and paste it between the tags <Workbook> </Workbook> in the new XML file.
The final XML file when opened in excel will show multiple worksheets as expected.