vba to remove shadow style?

G

Geoff Cox

Hello,

I have got lots of ppt files in which the text has the shadow style -
would appreciate pointer on how to remove this as it make the text
virtually illegible.

Cheers,

Geoff
 
J

JulieBean

Geoff,

All you would need to do is go to "format" and change the "text effects".
Hope this helps!

-Julie
 
G

Geoff Cox

Sub TheShadowKnowsButHesGoneNow()

Dim oSh As Shape
Dim oSl As Slide

For Each oSl In ActivePresentation.Slides
For Each oSh In oSl.Shapes
If oSh.HasTextFrame Then
If oSh.TextFrame.HasText Then
oSh.TextFrame.TextRange.Font.Shadow = msoFalse
oSh.Shadow.Visible = msoFalse
End If
End If
Next
Next

End Sub


Many thanks Steve!!

Cheers

Geoff
 
G

Geoff Cox

Geoff,

All you would need to do is go to "format" and change the "text effects".
Hope this helps!

Julie,

I know that but I had lots of files to change so was looking for the
VBA approach.

Cheers

Geoff
 

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