My project is about getting four worksheets from different workbooks (Excel files) and add them into a completely new workbook. I'm using this logic to get Excel sheet into worksheet object and add those into new worksheet:
var App = new Microsoft.Office.Interop.Excel.Application();
Workbook book1 = App.Workbooks.Open(@"path");
Worksheet sheet1 = book1.Worksheets\[1\];
Workbook book2 = App.Workbooks.Open(@"path");
Worksheet sheet2 = book2.Worksheets\[1\];
Workbook book3 = App.Workbooks.Open(@"path");
Worksheet sheet3 = book3.Worksheets\[1\];
Now how to create a new workbook and add sheet1, sheet2 and sheet3 to that workbook?
Above solution works for only one sheet if you want more sheet then this the simplest solution I got so far