Font Size Issue

G

googlequestions

I have what is hopefully an easy question. Using PowerPoint 2002 I am
attempting to design a series of templates into PowerPoint using
macros so that a person can click a button and change the slide layout
to whichever of the templates they need. I am using 4 layouts listed
under the "Other Layouts" section and one from the "Text Layouts"
section. My problem is the font size for the 4 "Other Layouts" keeps
appearing smaller than the "Text Layout". The Master Slide is set to
20-point, but the 4 keep appearing as 18-point.

My code only one line, each associated with a single button:

ActiveWindow.Selection.SlideRange.Layout = ppLayoutTextAndObject
End Sub

ActiveWindow.Selection.SlideRange.Layout = ppLayoutTextOverObject
End Sub

ActiveWindow.Selection.SlideRange.Layout = ppLayoutObjectAndText
End Sub

ActiveWindow.Selection.SlideRange.Layout = ppLayoutObjectOverText
End Sub

ActiveWindow.Selection.SlideRange.Layout = ppLayoutText
End Sub

How can I get the "ppLayoutText" to have the same font size as the
others?

Thanks
 
E

Echo S

You need to have another slide master, with its text set to 24-point. The
"other layouts" need to use this slide master, as the text in the
placeholders on the "other layouts" is always smaller than the text in the
placeholder on the master. (It's smaller by one step on the font size
dropdown list.) This is by design -- I suspect because there is more than
one placeholder on the "other layouts."
 
E

Echo S

Manually, you apply the master to a particular slide or group of slides --
the ones that are selected in the Slides pane. I don't know if you can apply
a master to a particular type of layout in code or not, though. Hopefully
someone else will.
 
J

John Wilson

You can apply a different master from code using the .Design object but it
may be easier to adjust the font size

This code is not ideal as the placeholder may not ALWAYS be Shapes(2) but it
probably will be if you've just created the layout

ActiveWindow.Selection.SlideRange.Layout = ppLayoutText
ActiveWindow.Selection.SlideRange.Shapes(2).TextFrame.TextRange.Font.Size=18
End Sub
--
Amazing PPT Hints, Tips and Tutorials

http://www.PPTAlchemy.co.uk
http://www.technologytrish.co.uk
email john AT technologytrish.co.uk


Echo S said:
Manually, you apply the master to a particular slide or group of slides --
the ones that are selected in the Slides pane. I don't know if you can apply
a master to a particular type of layout in code or not, though. Hopefully
someone else will.

--
Echo [MS PPT MVP] http://www.echosvoice.com
What's new in PPT 2007? http://www.echosvoice.com/2007.htm
Fixing PowerPoint Annoyances http://tinyurl.com/36grcd
PowerPoint 2007 Complete Makeover Kit http://tinyurl.com/32a7nx


How do I apply the master to a particular type of layout?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top