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

Application Object (Publisher)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Represents the Microsoft Publisher application. The Application object includes properties and methods that return top-level objects. For example, the ActiveDocument property returns a Document object.

Remarks

When using Microsoft Visual Basic for Applications in Publisher, all of the properties and methods of the Application object can be used without the Application object qualifier. For example, instead of typing Application.ActiveDocument.PrintOut, you can type ActiveDocument.PrintOut. Properties and methods that can be used without the Application object qualifier are considered "global." To view the global properties and methods in the Object Browser, click at the top of the list in the Classes box. When accessing the Publisher object model from a non-Publisher project, all properties and methods must be fully qualified.

Example

Use the Application property to return the Application object. The following example displays the application name.

Sub ShowAppName() 
 MsgBox Application.Name 
End Sub

Events

Name
AfterPrint
BeforePrint
DocumentBeforeClose
DocumentOpen
HideCatalogUI
MailMergeAfterMerge
MailMergeAfterRecordMerge
MailMergeBeforeMerge
MailMergeBeforeRecordMerge
MailMergeDataSourceLoad
MailMergeDataSourceValidate
MailMergeGenerateBarcode
MailMergeInsertBarcode
MailMergeRecipientListClose
MailMergeWizardFollowUpCustom
MailMergeWizardStateChange
NewDocument
Quit
ShowCatalogUI
WindowActivate
WindowDeactivate
WindowPageChange

Methods

Name
CentimetersToPoints
ChangeFileOpenDirectory
EmusToPoints
Help
InchesToPoints
IsValidObject
LinesToPoints
MillimetersToPoints
NewDocument
Open
PicasToPoints
PixelsToPoints
PointsToCentimeters
PointsToEmus
PointsToInches
PointsToLines
PointsToMillimeters
PointsToPicas
PointsToPixels
PointsToTwips
Quit
ShowWizardCatalog
TwipsToPoints

Properties

Name
ActiveDocument
ActiveWindow
Application
Assistance
AutomationSecurity
Build
CaptionStyles
ColorSchemes
COMAddIns
CommandBars
Documents
FileDialog
InsertBarcodeVisible
InstalledPrinters
Language
Name
OfficeDataSourceObject
Options
Parent
Path
PathSeparator
PrintPreview
ProductCode
ScreenUpdating
Selection
ShowFollowUpCustom
SnapToGuides
SnapToObjects
TemplateFolderPath
ValidateAddressVisible
Version
WebOptions
WizardCatalogVisible

See also

Other resources

Application Object Members

© 2017 Microsoft