PowerPoint s Application Object

     

PowerPoint's Application Object

Chapter 5, "Working with Objects," ran through some Application object properties and methods that are common to all VBA-enabled applications. You've also seen in the last two chapters how Word and Excel have a few unique Application object members . PowerPoint's Application object has just a few unique properties and no unique methods. Here's a list of some of PowerPoint's unique properties:

ActivePresentation ” Returns a Presentation object that represents the presentation file that currently has the focus within PowerPoint. See "PowerPoint's Presentation Object" later in this chapter to learn about the properties and methods of the Presentation object.

ActivePrinter ” Returns or sets the name of the active printer. (Note that to set the active printer, you must specify the name of an existing Windows printer.) The following statement sets the active printer:

 ActivePrinter = "HP LaserJet 5P/5MP PostScript local on LPT1:" 

Presentations ” Returns the Presentations object, which is the collection of all open presentations.

SlideShowWindows ” Returns the SlideShowWindows object, which is the collection of all open slide show windows.



Absolute Beginner's Guide to VBA
Absolute Beginners Guide to VBA
ISBN: 0789730766
EAN: 2147483647
Year: 2003
Pages: 146

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net