The following example shows you how to create a worksheet, set cell value and add worksheet to workbook. See screenshot.