Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Label Text Color in ACAD VBA?

Status
Not open for further replies.

CanonShooter

Structural
Oct 14, 2005
39
0
0
US
In AutoCAD VBA, anyone know how to change the color of a Label?

I would assume it is the ForeColor property, but when I look at the predefined choices, they are shades of gray. A look at the Palette tab in the ForeColor property, shows nothing. No colors or anything is in there.

Maybe that is my problem? If so, how to fix?
 
Replies continue below

Recommended for you

I figured it out.

In the VB code, you can set the ForeColor property to something like vbRed and it will work. There is a list of the vb Colors in help. Each one has a hex color value, but they didn't work, so I used the vbColor....
 
Status
Not open for further replies.
Back
Top