Thread: Bold Font
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 6,953
Default Bold Font

similar code worked fine for me:

Private Sub UserForm_Initialize()
Me.Label1.Font.Bold = True
Me.Label1.Caption = "My Dog is big"
End Sub

--
Regards,
Tom Ogilvy


"scantor145" wrote:


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