excelCloseWorkbook
Syntax | excelCloseWorkbook(workbookFID) | Package | excel |
Alias |
| Pkg Usage | closeWorkbook(workbookFID) |
Description
Saves and closes the workbook that was opened at the beginning of the process.
Parameters
Parameter name | Type | Required | Description |
|---|---|---|---|
workbookFID | Integer | Yes | The file id of the workbook that should be closed. The file id is returned from running the excelOpenWorkbook() routine. |
Return Type
None
The return value has no meaning.
Example
Add a new worksheet to an existing workbook and then saves and closes the workbook.
use "excel";
int fid = openWorkbook("snakes.xlsx");
addSheet(fid, "Venemous Snakes", true);
closeWorkbook(fid);Click here to download the workbook used in this example.
See also
Need support? Create a request with our support team.
Copyright © 2005 - 2025 Appfire | All rights reserved.
