Top
PowerCOBOL V11.0 Reference
FUJITSU Software

5.18 CloseBook Method

Description:

Closes the Excel book.

Used in controls:

ExcelConnection

Used in objects:

None.

Parameters:

1. [VT_BOOL - CloseAllS9(4) COMP-5]

2. [VT_BOOL - SaveChangesS9(4) COMP-5]

Description of Parameters:

CloseAll: Specify whether to close all the books connected with the PowerCOBOL application or only the books connected with the control.
POW-TRUE: Close all the books connected with the PowerCOBOL application.
POW-FALSE: Close the books connected with the control.
If omitted, all books connected with the PowerCOBOL application are closed.

SaveChanges: Specify whether to save the book connected with the control. This parameter is effective only when the first parameter (CloseAll) is False.
POW-TRUE: Save the book connected with the control.
POW-FALSE: Do not save the book.
If omitted, a confirming message box is displayed.

Return value:

None.

Example:

INVOKE CmExcel "CloseBook"

Backward compatibility method name:

CLOSEEXCELSHEET

Backward compatibility
arguments:

None.