Visual Basic for Applications/PowerPoint

This lesson introduces PowerPoint macros.

Objectives and Skills
Objectives and skills for PowerPoint scripting include:
 * Using Microsoft PowerPoint objects

Readings

 * 1) Microsoft: AddSlide Method
 * 2) Microsoft: Shapes Property
 * 3) Microsoft: Built-In Document Properties

Activities
In these activities you will create macros which interact with PowerPoint presentations.
 * 1) Presentation Properties
 * 2) Create a macro that inserts a new text slide at the end of the active presentation and adds presentation information (properties) to the slide.  You will need to refer to Slide.Shapes(1).TextFrame.TextRange.Text for the title text and Slide.Shapes(2).TextFrame.TextRange.Text for the content text.  Concatenate vbCrLf to go to the next line of content.  All of the information listed below is included in either Presentation properties directly or the BuiltInDocumentProperties.  Your macro should include Option Explicit.  Your inserted information should include the following.
 * 3) * Presentation Name
 * 4) * Path
 * 5) * Title
 * 6) * Subject
 * 7) * Author
 * 8) * Last Author
 * 9) * Revision Number
 * 10) * Creation Date
 * 11) * Total Editing Time
 * 12) * Number of Slides
 * 13) * Number of Hidden Slides
 * 14) Custom Footer
 * 15) Create a macro that Inserts a custom footer into the slide master for the active presentation.  The footer should include a logo and company name on the left, and the current date on the right.
 * 16) Automatic Custom Footer
 * 17) Repeat Activity 2 inserting a custom footer into the slide master for the active presentation that includes a logo, company name, and current date.  This time, implement the macro as an AutoOpen macro, and ensure that the macro tests to see if a footer is already in the presentation, and does nothing if a footer already exists.