More on SlideMaster shapes
The five shapes on the SlideMaster are exactly that: Shape objects. You can set any of the Shape properties, not just fonts. Changing the size or borders on the SlideMaster shapes affects the placeholders on all shapes. To access the properties of the shapes, use the Shapes collection. The indices are from 1 to 5, in this order: Title Area, Object Area, Date Area, Footer Area, and Number Area. With the myriad of constants available in VBA, it is surprising there are not constants for these object. (If you expect to work with them a lot, you can certainly define your own.)
All shapes get their color from the ColorScheme object on the SlideMaster. In the example in the previous section, all the text is dark blue. Perhaps you want the footer area to be dark green instead. Override the ColorScheme setting by accessing the shape directly. The following lines of code set the text of the footer to "Tasmanian Traders" and set the color to dark green.
#DEFINE rgbDarkGreen RGB(0, 128, 0)
WITH oPresentation.SlideMaster.Shapes[4].TextFrame.TextRange
.Font.Color.RGB = rgbDarkGreen
.Text = "Tasmanian Traders"
ENDWITH
The first two shapes, the Title Area and the Object Area, get their font properties from the TextStyles objects. The other three (Date Area, Footer Area, and Number Area) are not affected by TextStyles. Set font properties of these three objects separately.
Copyright 2000 by Tamar E. Granor and Della Martin All Rights Reserved