I'm trying to figure out how to work with Excel through c #, I can't figure out how to add a sheet to an existing book. Sheets are in different files, I need to put them in one book. While doing so, but it is too expensive and clumsy:
using System; using System.IO; using Microsoft.Office.Interop.Excel; internal static class Program { private static void Main ( string[] args ) { var dir = Directory.GetCurrentDirectory(); var excelApp = new Application(); excelApp.Visible = true; excelApp.Workbooks.Open( $"{dir}\\MAN.xls" ); } }