Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-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
Joined
Oct 14, 2005
Messages
39
Location
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?
 
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.

Part and Inventory Search

Sponsor

Back
Top