Save to Excel file

Refer to the following example code to see how to save a workbook to Excel file.