VBA Label Modifycation

  • Thread starter Thread starter pechoi
  • Start date Start date
P

pechoi

Hi all,
I am trying to change forecolor in a label. This is what I am doing in
vba.
MsgBox label1.ForeColor
label1.ForeColor = 10
MsgBox label1.ForeColor
This prints out as I expected but actual forecolor at label (property)
does not change. Can I change that somehow in vba?

Thx
 
What color was it previously?
Changing from 0 (black) to 10 might not be perceivably different.
Try a stronger color change, such as:
me.label1.ForeColor = RGB(255,0,0)
 

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

Back
Top