Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 407
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Text on User form


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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 407
Default Text on User form

Ah yes, I see how that works. Thanks!

"Leith Ross" wrote
in message ...

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a new text box to user form Marilyn Excel Discussion (Misc queries) 3 May 13th 07 11:42 PM
User Form: Cannot Update Text Box Charles in Iraq Excel Discussion (Misc queries) 0 October 12th 06 07:53 AM
user form text box date problems Francis Brown Excel Programming 5 October 20th 05 02:39 PM
Formatting text in a user form text box DB Excel Programming 0 July 23rd 05 08:09 PM
User Form Text Box Paul Excel Programming 2 March 12th 05 03:49 AM


All times are GMT +1. The time now is 10:20 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"