View Single Post
 
Old 09-25-2016, 11:09 AM
dh1sbg dh1sbg is offline Windows 10 Office 2016
Novice
 
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