View Single Post
 
Old 09-26-2016, 09:30 AM
JohnWilson JohnWilson is offline Windows 7 64bit Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,913
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

Command Buttons are not Shapes and in this case you need to change the backcolor

Sub changeme()
Dim octrl As Object
'change slide number and name to suit
Set octrl = ActivePresentation.Slides(1).Shapes("CommandButton 1").OLEFormat.Object
octrl.BackColor = &HFF
End Sub


If you explain exactly what you are trying achieve there may be a better method
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote