// Set a cell value worksheet.Cells[1, 1].Value = "Hello, World!";
If you are writing a VBA application for distribution, . Hard-referencing version 15.0 will break your application for anyone using Excel 2010 (14.0) or 2016+ (16.0). Microsoft Excel 15.0 Object Library Download
Here is an example of how to use the Microsoft Excel 15.0 Object Library in C#: // Set a cell value worksheet
// Create an Excel application object Excel.Application excelApp = new Excel.Application(); // Set a cell value worksheet.Cells[1
To use the Microsoft Excel 15.0 Object Library, you need to: