.. highlightlang:: us .. _auto_closedocument: auto_CloseDocument ================== .. index:: auto_CloseDocument .. us.tag auto_CloseDocument NOTREADYENGLISH :ref:`auto_CloseDocument` closes the active document. If the document was not saved with the :ref:`auto_SaveDocumentAs` function, it will close without being saved. .. function:: bool = auto_CloseDocument() .. us.return **Return Value** If the function succeeds, the return value is TRUE (1); otherwise it is FALSE (0). .. us.example **Example** :: auto_CloseDocument() .. seealso:: :ref:`overview-automation`, :ref:`auto_SaveDocumentAs` :sub:`id-573096`