Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General PowerPoint Questions / April 2007

Tip: Looking for answers? Try searching our database.

vba to remove shadow style?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Geoff Cox - 03 Apr 2007 19:54 GMT
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
Steve Rindsberg - 03 Apr 2007 21:28 GMT
> 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.

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

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:  www.pptfaq.com
PPTools:  www.pptools.com
================================================
Geoff Cox - 05 Apr 2007 10:27 GMT
>> Hello,
>>
[quoted text clipped - 19 lines]
>    
>End Sub

Many thanks Steve!!

Cheers

Geoff

>-----------------------------------------
>Steve Rindsberg, PPT MVP
>PPT FAQ:  www.pptfaq.com
>PPTools:  www.pptools.com
>================================================
JulieBean - 03 Apr 2007 21:40 GMT
Geoff,

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

-Julie

> Hello,
>
[quoted text clipped - 5 lines]
>
> Geoff
Geoff Cox - 07 Apr 2007 07:01 GMT
>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

>-Julie
>
[quoted text clipped - 7 lines]
>>
>> Geoff
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.