Bold Font

S

scantor145

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 t
change to a bold font

I used the following:


Code
-------------------
frmEasyLyteQC.lblInstruction.Font.Bol
-------------------


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

What's wrong ? Any way around it
 
T

Tom Ogilvy

similar code worked fine for me:

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

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

Top