Close Event
Applies To
Document object.
Description
Occurs when a document is closed.
Syntax
Private Sub Document_Close( )
Remarks
If the event procedure is stored in a template, the procedure will run when a new document based on that template is closed and when the template itself is closed (after being opened as a document).
See Also
DocumentChange event, New event, Open event, Quit event.
Example
This example makes a backup copy of the document on a file server when the document is closed. (The procedure is stored in a document, not a template.)
Private Sub Document_Close()
ThisDocument.Save
ThisDocument.SaveAs "\\network\backup\" & ThisDocument.Name
End Sub