Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 10-24-2019, 04:23 PM
JohnWilson JohnWilson is offline change forecolor all CMDbuttons Windows 10 change forecolor all CMDbuttons Office 2016
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,914
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

I would use this to check for a command button as name like"CMD_* can fail


Sub ChangeCOMM()
Dim oshp As Shape
Dim osld As Slide
For Each osld In ActivePresentation.Slides
For Each oshp In osld.Shapes
If oshp.Type = msoOLEControlObject Then
If oshp.OLEFormat.ProgID = "Forms.CommandButton.1" Then
oshp.OLEFormat.Object.BackColor = RGB(255, 0, 0) ' or whatever
End If
End If
Next oshp
Next osld
End Sub
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
 

Tags
buttons, vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change and implement default theme font style change Nikko963 Word 5 05-04-2018 09:11 AM
change forecolor all CMDbuttons change formula based upon change of month invgrp2 Excel 7 05-03-2018 10:46 AM
Change computer's time, and all appointment times in Outlook's calendar change TimTDP Outlook 0 03-14-2017 06:56 AM
change forecolor all CMDbuttons How to change save location and file to print name change? albertc Excel Programming 1 05-13-2012 07:05 PM
change forecolor all CMDbuttons change the view to final, my change bars disappear. I need them visible anna.a.julin Word 1 03-01-2012 08:05 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:33 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft