Different Slide Layout Values
There are many types of slide layouts that can be inserted into a PowerPoint presentation, both manually and with a macro. If you are inserting a slide manually from the Home tab of the PowerPoint ribbon, it’s easy to pick the one you want since you are given a nice preview image of the slide. However, if you are writing a macro to insert additional slides into your presentation, as we did in Part 4 of this series, you’ll need to know what terminology to use in the Visual Basic editor to represent the type of slide you want to add.
There are 29 different values that can be used for slide layouts in PowerPoint 2007. A full listing of these values will appear in the Visual Basic editor when you are writing a statement in your macro that requires you to designate one of these formats. See the screenshot below for an example. (Click the image for a larger view.) It shouldn’t take long to build up a familiarity with these values once you begin using them on a regular basis. To help get you started, we’ll list and describe some of the more commonly used values for the slide layout property. In an effort to maintain uniformity, we’ll use the Paper theme in all of the screenshots associated with these descriptions.
ppLayoutBlank – This is the value we used for the slide layout when creating a macro to insert additional slides in Part 4 of this series. It is associated with a slide that is completely blank except for any theme that you might be using in your presentation. A screenshot of this can be seen in the first image below.
ppLayoutText – Use this value for a slide that contains both a title and a text box. The second image below is a slide created with this value.
ppLayoutTitle – This value is used to create a basic title slide as shown in the third screenshot below.