In This Topic
Closes this workbook.
Syntax
'Declaration
Sub Close( _
Optional ByVal As Boolean, _
Optional ByVal As String _
)
'Usage
Dim instance As IWorkbook
Dim saveChanges As Boolean
Dim filename As String
instance.Close(saveChanges, filename)
void Close(
bool ,
string
)
Parameters
- saveChanges
- If there are no changes to the workbook, this argument is ignored. If set to True , changes are saved to the workbook. If there is not yet a file name associated with the workbook, then is used. If is omitted and there is no file name associated with the workbook, is ignored.
- filename
- Save changes under this file name.
See Also