In This Topic
Closes this workbook.
Syntax
'Declaration
Public Sub Close( _
Optional ByVal As Boolean, _
Optional ByVal As String, _
Optional ByVal As Boolean _
)
'Usage
Dim instance As Workbook
Dim saveChanges As Boolean
Dim filename As String
Dim disposeAssociators As Boolean
instance.Close(saveChanges, filename, disposeAssociators)
public void Close(
bool ,
string ,
bool
)
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.
- disposeAssociators
true
if all associated object should be disposed.
See Also