f$Excel close workbook
f$Excel close workbook
Close the current workbook. If desired, an argument can be entered as well to specify if the workbook should be saved. If this argument is not entered as well, Excel asks if the worksheet is to be saved, if relevant.
Syntax: | Status = f$Excel('Workbook', 'close' [, SaveYesNo] ) | ||
| Argument | Type | Meaning |
| 'Workbook' | String | Keyword |
| 'close' | String | Keyword |
| SaveYesNo | Integer | This argument is optional. |
Result: | Integer | 0: command executed successfully | |
Example: | Status = f$Excel('Workbook','open','c:\\temp\\test2.xls') | ||