Thread: Bold Font
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Peter T Peter T is offline
external usenet poster
 
Posts: 5,600
Default Bold Font

frmEasyLyteQC.lblInstruction.Font.Bold = True ' or False

Regards,
Peter T

"scantor145" wrote
in message ...

Visual Basic 6.3 w/Excel 2003

I have a User Form that has a label control

UserForm = frmEasyLyteQC
Name = lblInstruction
Caption = Open File


When the user performs a certain action I would like the label font to
change to a bold font

I used the following:


Code:
--------------------
frmEasyLyteQC.lblInstruction.Font.Bold
--------------------


But when the program executes I get a Complile error: Invalid use of
property.

What's wrong ? Any way around it?


--
scantor145
------------------------------------------------------------------------
scantor145's Profile:

http://www.excelforum.com/member.php...o&userid=14766
View this thread: http://www.excelforum.com/showthread...hreadid=533396