Applies to |
Closes an open window.
Object.Close ( [saveChanged As Boolean], [fileName As String] )
Documents.Close
When the Close method applied to the Window object (or it derivatives) and there is another window(s) displaying the same document, all input parameters will be ignored.
Otherwise, if the saveChanged parameter is True, the corresponding document will be saved. If omitted, the saveChanged parameter assumed to be FALSE.
You can provide the file name for saving document as a fileName parameter. If the fileName is omitted, the document will be saved under its current name. If the last is still not specified, QuickField provides a dialog box asking the name and location of the file.