Share via


Application Object [Publisher 2003 VBA Language Reference]

Application
Multiple objects

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.

Using the Application object

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

Sub ShowAppName()
    MsgBox Application.Name
End Sub

Remarks

When using Visual Basic for Applications in Microsoft 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 <globals> 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.

Properties | ActiveDocument Property | ActiveWindow Property | Application Property | Assistant Property | Build Property | ColorSchemes Property | COMAddIns Property | CommandBars Property | Documents Property | FileDialog Property | FileSearch Property | Language Property | Name Property | OfficeDataSourceObject Property | Options Property | Parent Property | Path Property | PathSeparator Property | PrintPreview Property | ProductCode Property | ScreenUpdating Property | Selection Property | SnapToGuides Property | SnapToObjects Property | TemplateFolderPath Property | Version Property | WebOptions Property | WizardCatalogVisible Property

Methods | CentimetersToPoints Method | ChangeFileOpenDirectory Method | EmusToPoints Method | Help Method | InchesToPoints Method | IsValidObject Method | LaunchWebService Method | LinesToPoints Method | MillimetersToPoints Method | NewDocument Method | Open Method | PicasToPoints Method | PixelsToPoints Method | PointsToCentimeters Method | PointsToEmus Method | PointsToInches Method | PointsToLines Method | PointsToMillimeters Method | PointsToPicas Method | PointsToPixels Method | PointsToTwips Method | Quit Method | TwipsToPoints Method

Events | DocumentBeforeClose Event | DocumentOpen Event | MailMergeAfterMerge Event | MailMergeAfterRecordMerge Event | MailMergeBeforeMerge Event | MailMergeBeforeRecordMerge Event | MailMergeDataSourceLoad Event | MailMergeDataSourceValidate Event | MailMergeWizardStateChange Event | NewDocument Event | Quit Event | WindowActivate Event | WindowDeactivate Event | WindowPageChange Event

Parent Objects

Child Objects | ColorSchemes Object | Document Object | Documents Object | Options Object | Selection Object | WebOptions Object | Window Object