Table of contents
TOC
Collapse the table of content
Expand the table of content

Application.Quit Method (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

Quits Microsoft Publisher. This is equivalent to clicking Exit on the File menu.

Syntax

expression. Quit

_expression_A variable that represents an Application object.

Remarks

To avoid losing unsaved changes, use either the Save or SaveAs method to save any open publication before calling the Quit method.

Example

This example saves the open publication if there is one and then closes Publisher.

If Not (ActiveDocument Is Nothing) 
 ActiveDocument.Save 
End If 
Application.Quit

See also

Concepts

Application Object

© 2018 Microsoft