So, I can’t find any methods with file opening in Excel.Workbook or Excel.Application, and I am wondering why.
I have path to an Excel file, and I would like to manipulate it. I understand I have to use Excel.Application, Excel.Workbook, and Excel.Worksheet. The file to the Excel file is ExcelFilePath, what should I do to make it possible?
You first need to add the reference to
Microsoft.Office.Interop.Excelto your project in order to use the Excel API, then fill the variables:And then you only need to use the methods they have. For example: