change forecolor with code

  • Thread starter Horatio J. Bilge, Jr.
  • Start date
H

Horatio J. Bilge, Jr.

I have some labels on a userform that I set the forecolor property to
&H80000011& (Disabled Text). I want to be able to change the forecolor
between "Disabled Text" and "Button Text" (and vice versa) with code. I know
I can use RGB values, but I was hoping to use the same colors that are listed
in the properties box, so it matches other labels on the form.
 
H

Horatio J. Bilge, Jr.

Not quite what I was hoping for, but there is a ton of information on that
page, and I made it work. I used color detector to get the rgb value for the
"Disabled Text" color, and then used that in my code.

Thanks.
 

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