If the data is consistent and will always be recorded in the same cells, then this is the simplest solution - it works well for product information / type of contact information exporting
// set cell A7 worksheet.get_Range("A7", "A7").Font.Size = 20; // set cells A7, A8 worksheet.get_Range("A7", "A8").Font.Size = 20; // set cells A7, B7 worksheet.get_Range("A7", "B7").Font.Size = 20; // set cells A7, A8, B7, B8 worksheet.get_Range("A7", "B8").Font.Size = 20;
If the data changes and is sometimes written in several rows / columns, then something like this is simpler - it works well for exporting a data list / shopping list type
int RowNum; int ColNum; // some code to set variables worksheet.Cells[RowNum, ColNum].Font.Size = 20;
Wayne source share