a macro to change backgound

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.
 
V

vindys

ActivePresentation.SlideMaster.Background.Fill.ForeColor.RGB = 13995605

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

John Wilson

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
 

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