+ Reply to Thread
Results 1 to 3 of 3

Text on User form

  1. #1
    Dean
    Guest

    Text on User form

    I have some text labels entered directly on a user form and would like to make some of it bold or underline or red font. I don't see how to do this though I imagine there is a way. Can someone help, pls?

    Thx!
    Dean

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Dean,

    With the VBA editor open, display the form and click on the label you want to modify. In the Properties window click Font to underline, bold, etc. the text. To change the font color click on ForeColor and select the color you want.

    These same properties can also be set using VBA code. For example, this code sets Label1's font to 12 point Arial bold in red...

    Label1.Font = "arial"
    Label1.Font.Bold = True
    Label1.Font.Size = 12
    Label1.ForeColor = vbRed

    Sincerely,
    Leith Ross

  3. #3
    Dean
    Guest

    Re: Text on User form

    Ah yes, I see how that works. Thanks!

    "Leith Ross" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Hello Dean,
    >
    > With the VBA editor open, display the form and click on the label you
    > want to modify. In the Properties window click Font to underline, bold,
    > etc. the text. To change the font color click on ForeColor and select
    > the color you want.
    >
    > These same properties can also be set using VBA code. For example, this
    > code sets Label1's font to 12 point Arial bold in red...
    >
    > Label1.Font = "arial"
    > Label1.Font.Bold = True
    > Label1.Font.Size = 12
    > Label1.ForeColor = vbRed
    >
    > Sincerely,
    > Leith Ross
    >
    >
    > --
    > Leith Ross
    > ------------------------------------------------------------------------
    > Leith Ross's Profile:
    > http://www.excelforum.com/member.php...o&userid=18465
    > View this thread: http://www.excelforum.com/showthread...hreadid=563939
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1