a macro to change backgound

  • Thread starter Thread starter bertpu
  • Start date Start date
B

bertpu

Hello,
I want to make a macro to change the background of all the slides in a ppt
file to a specific color. Can I? How to write the code?
Thanks.
 
ActivePresentation.SlideMaster.Background.Fill.ForeColor.RGB = 13995605

this line will make the master slide background to particular color and
resulting all the slides
 
Try this

Sub bckcol()
Dim opres As Presentation
Dim osld As Slide
Set opres = ActivePresentation
With opres.SlideMaster.Background.Fill
..Solid
..ForeColor.RGB = RGB(100, 100, 0) 'RG&B values
End With
For Each osld In opres.Slides
osld.FollowMasterBackground = msoTrue
Next osld
End Sub
--
Amazing PPT Hints, Tips and Tutorials

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