Reset default command button color (grey) in a form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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 /
 
Back
Top