If you have a license, then apply it. If you are using the evaluation version, skip the license‑related code lines.
Access any desired cell of a worksheet in the Excel file.
Insert the words “Hello World!” into the accessed cell.
Generate the modified Microsoft Excel file.
The implementation of the above steps is demonstrated in the examples below.
Code Sample: Creating a New Workbook
The following example creates a new workbook from scratch, inserts “Hello World!” into cell A1 on the first worksheet, and saves the Excel file.
Code Sample: Opening an Existing File
The following example opens an existing Microsoft Excel template file, gets a cell, and checks the value in cell A1.
Initialize and Clean up
The Startup method must be invoked before using the library and only needs to be invoked once. Like the Startup function, the Cleanup method only needs to be called once when the program ends.