Programmatically Setting Text Shadow Properties
Posted
by Ben Gribaudo
on Stack Overflow
See other posts from Stack Overflow
or by Ben Gribaudo
Published on 2010-03-22T18:11:57Z
Indexed on
2010/03/22
18:51 UTC
Read the original article
Hit count: 520
powerpoint-vba
|powerpoint-2007
Hello,
PowerPoint has two kinds of shadows--shape and text. Shape shadows may be set by right-clicking on a shape (including a text box), choosing Format Text, then selecting Shadow or using VBA via the Shadow property on each shape:
For Each Slide In ActivePresentation.Slides
For Each Shape In Slide.Shapes
Shape.Shadow.Size = 100
'etc
Next
Next
How do I set text shadow's properties using VBA? In the UI, these may be accessed by right-clicking on text, choosing Format Text Effect, then selecting Shadow. I've done a bit of digging online and have been unable to find where these properties may be accessed via PowerPoint's VBA API.
Thank you, Ben
© Stack Overflow or respective owner