Application Object

Application
Multiple objects

Represents the entire Microsoft PowerPoint application. The Application object contains:

  • Application-wide settings and options (the name of the active printer, for example).
  • Properties that return top-level objects, such as ActivePresentation, Windows, and so on.

Using the Application Object

Use the Application property to return the Application object. The following example returns the path to the application file.

Dim MyPath As String
MyPath = Application.Path

The following example creates a PowerPoint Application object in another application, starts PowerPoint (if it's not already running), and opens an existing presentation named "Ex_a2a.ppt."

Set ppt = New Powerpoint.Application
ppt.Visible = True
ppt.Presentations.Open "c:\My Documents\ex_a2a.ppt"

Remarks

When you are writing code that will run from PowerPoint, the following properties of the Application object can be used without the object qualifier: ActivePresentation, ActiveWindow, AddIns, Assistant, CommandBars, Presentations, SlideShowWindows, Windows. For example, instead of writing Application.ActiveWindow.Height = 200, you can write ActiveWindow.Height = 200.

Properties | Active Property | ActivePresentation Property | ActivePrinter Property | ActiveWindow Property | AddIns Property | AnswerWizard Property | Assistant Property | AutoCorrect Property | AutomationSecurity Property | Build Property | Caption Property | COMAddIns Property | CommandBars Property | Creator Property | DefaultWebOptions Property | DisplayAlerts Property | DisplayGridLines Property | FeatureInstall Property | FileDialog Property | FileFind Property | FileSearch Property | Height Property | LanguageSettings Property | Left Property | Name Property | NewPresentation Property | OperatingSystem Property | Options Property | Path Property | Presentations Property | ProductCode Property | ShowStartupDialog Property | ShowWindowsInTaskbar Property | SlideShowWindows Property | Top Property | VBE Property | Version Property | Visible Property | Width Property | Windows Property | WindowState Property

Methods | Activate Method | Help Method | Quit Method | Run Method

Events | AfterNewPresentation Event | AfterPresentationOpen Event | ColorSchemeChanged Event | NewPresentation Event | PresentationBeforeSave Event | PresentationClose Event | PresentationNewSlide Event | PresentationOpen Event | PresentationPrint Event | PresentationSave Event | PresentationSync Event | SlideSelectionChanged Event | SlideShowBegin Event | SlideShowEnd Event | SlideShowNextBuild Event | SlideShowNextClick Event | SlideShowNextSlide Event | WindowActivate Event | WindowBeforeDoubleClick Event | WindowBeforeRightClick Event | WindowDeactivate Event | WindowSelectionChange Event

Parent Objects

Child Objects | AddIns Object | AutoCorrect Object | DefaultWebOptions Object | DocumentWindow Object | DocumentWindows Object | Options Object | Presentation Object | Presentations Object | SlideShowWindows Object

See Also | Using Events with the Application Object