Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-25-2016, 11:09 AM
dh1sbg dh1sbg is offline VBA: How to change color of a CommandButton Windows 10 VBA: How to change color of a CommandButton Office 2016
Novice
VBA: How to change color of a CommandButton
 
Join Date: Aug 2016
Posts: 6
dh1sbg is on a distinguished road
Default VBA: How to change color of a CommandButton

Hi there,



I want to change the command-button color from red to green using VBA

I defined a variable as a shape and used this code

myShape.Fill.ForeColor.RGB = RGB(0,255, 0)

Well, it does not work, no changes so far.

Any Idea, what I did wrong?

Regards

Bruno
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA: How to change color of a CommandButton CommandButton, 3 PCs with 3 different office(s) CYFire Excel Programming 1 12-13-2015 05:31 AM
VBA: How to change color of a CommandButton CommandButton random statu cromano Word VBA 7 06-13-2014 07:40 AM
VBA: How to change color of a CommandButton Email Document via Commandbutton aqhibjaveed Word VBA 1 03-25-2013 11:22 PM
VBA: How to change color of a CommandButton change One highlight Color to Another Redbarn Word VBA 1 03-16-2013 02:03 PM
color change for same shape ajkiran PowerPoint 1 11-10-2012 07:41 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:24 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