Reset default command button color (grey) in a form

A

Alex St-Pierre

Hi,
I modify some BackColor of command button and depending what the user do, I
would like to put the same color as the initial color (grey). I tried the
following but it doesn't fit the grey in any Excel version (good with 2002
but not with 2003).
Me.CommandButton1.BackColor = RGB(212, 208, 200)
Is the a way to say something like:
Me.CommandButton1.BackColor = wdStandardCommandButtonColor
Thanks!
Alex
 
T

Tyla

The line:
Me.CommandButton1.BackColor = &H8000000F&

seems to work fine on Excel 2003, Win 2003 SP2 in re-establishing the
default gray color for a button.

/ Tyla /
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top