Thanks very much, John. If I read the code correctly it will have the
same
issue that I was stuck on in my post a few minutes ago - i.e.
establishing
the link to the "(Body)" font in the current theme.
However, I'll try yours out, as it might lead me down a different path
that
the one I was stuck on.
--Ian
:
See if this code helps
Sub allchange()
'2007 version
Dim osld As Slide, oshp As Shape
For Each osld In ActivePresentation.Slides
For Each oshp In osld.Shapes
If oshp.PlaceholderFormat.Type = 7 Then
'Body text change values as required
With oshp.TextFrame.TextRange.Font
.Name = "Arial"
.Size = 24
.Color.RGB = RGB(255, 0, 0)
.Bold = msoFalse
.Italic = msoFalse
.Shadow = False
End With
End If
Next oshp
Next osld
End Sub
How to use
http://www.pptalchemy.co.uk/powerpoint_hints_and_tips_tutorials.html#vba
--
Amazing PPT Hints, Tips and Tutorials
http://www.pptalchemy.co.uk/powerpoint_hints_and_tips_tutorials.html
email john AT technologytrish.co.uk
:
Thank you Echo.
A good suggestion - but its not quite going to work for me. It picks
up all
other incidental uses of the original font (e.g. titles, footers,
etc); it
does not affect italics; and as you point out, does not provide the
"(body)"
version of the font as a choice. :-(
I'll look into the code option - perhaps we can leverage the Replace
Font
method in code to get the desired result.
--Ian
:
You can use Replace Font. It's on the Home tab -- way on the far
right in
the Replace dropdown. It doesn't specify which is the "heading" or
"body"
font from the theme, though, and I agree with you that tying to the
theme is
what you want in the long run.
I'd bet this is doable in code, though. Would that be an option?
--
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
Using PPT 2207, and trying to standardize a whole set of large
PPT decks
which contain a lot of ad-hoc text boxes.
Is there a way to convert all text boxes in a PPT file to the
"(body)"
font
of a font theme so that any future changes can be implemented
simply via
themes?
Thanks in advance!
--Ian