Description: | Executes the Excel save as command to save the book. |
Used in controls: | ExcelConnection |
Used in objects: | None. |
Parameters: | 1. VT_BSTR - BookNameX(8192) 3. [VT_BSTR - FileFilterX(8192)] |
Description of Parameters: |
|
Return value: | VT_I4 - ReturnValueS9(9) COMP-5 Zero or greater indicates normal completion. Negative indicates an error. |
Example: | WORKING-STORAGE SECTION. 01 ExcelBookName PIC X(20). 01 ReturnValue PIC S9(9) COMP-5. PROCEDURE DIVISION. * Saves the current Excel book as * "my.xls" MOVE "C:\my.xls" TO ExcelBookName INVOKE CmExcel1 "SaveAsBook" USING ExcelBookName RETURNING ReturnValue |
Backward compatibility | None. |