This example demonstrates how to add data to worksheet cells in code.
Assign the value to the Value property of a Cell or CellRange object.
The Range property returns a CellRange type object. Use its members to customize the cells' style settings and perform actions, for instance, merge cells.