This method closes the spreadsheet.
Syntax
public void closeSpreadsheet(boolean saveChanges)
Parameters
boolean saveChangesSpecifies
whether to save changes before closing the spreadsheet. A value of true saves changes. A value of false does not save changes.
Usage
- If the parameter saveChanges is false, the spreadsheet is closed without saving changes.
- If the parameter saveChanges is true and the spreadsheet is in visible mode:
- If the spreadsheet is new, or new from a template, a Documents-Save window
display to save the file.
- If the spreadsheet is opened from a file, then the spreadsheet is saved
before closing.
- If the parameter saveChanges is true and the spreadsheet is in invisible mode:
- If the spreadsheet is a new , or new from a template, this method throws an exception.
- If the spreadsheet is opened from a file, then the spreadsheet is saved
before closing.