PDA

View Full Version : Macro Help



jess
03-08-2010, 09:24 AM
Hi

I am two problems with VBA coding in Powerpoint 2007 and i was wondering if anyone could help me?

I am building a computer interface in Microsoft Powerpoint 2007 and one features i need to change the background and font colour of the presentation slides. For the Background colour i have three command buttons which each change the background of the whole presentation to a different colour (White or Blue or Yellow). The code i am using is the same for each colour except for colour code: ActivePresentation.SlideMaster.Background.Fill.BackColor.RGB = 255

The font colour is similar except there are two colours white and black. the code i am using for that is the same except for the colour code:
ActivePresentation.SlideMaster.TextStyles.Item.TextFrame.TextRange.Font.Col or.RGB = 0

The problem is when i run the presentation and select the button nothing happens. Its the same problem for both the font and background colour buttons.

Can anyone help me?
Thank you

Jess