Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

excelCloseWorkbook(workbookFID)

Package

excel

Alias

Pkg Usage

closeWorkbook(workbookFID)

Description

Excerpt
hiddentrue
Saves and closes the workbook that was opened at the beginning of the process.

Saves and closes the workbook that was opened at the beginning of the process.

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

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.

Code Block
languagejs
use "excel";
int fid = openWorkbook("snakes.xlsx");
addSheet(fid, "Venemous Snakes", true);
closeWorkbook(fid);

Note

Click here to download the workbook used in this example.

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "excel_routine" and space = currentSpace ( )
labelsarray_routines