
|
Book Home Page Bloglines 1906 CelebrateStadium 2006 OfficeZealot Scobleizer TechRepublic AskWoody SpyJournal Computers Software Microsoft Windows Excel FrontPage PowerPoint Outlook Word Host your Web site with PureHost! |
![]() Thursday, March 31, 2011 – Permalink – Insert Line Breaks with CodeLabel Captions
To successfully insert a line break in a label caption, you need to include both a line feed character and a carriage return character, entered consecutively.
Me.Label1.Caption = "Line 1" & _ Chr(13) & Chr(10) & "Line 2" However, you can also simplify your code using an built-in constant: Me.Label1.Caption = "Line 1" & vbCrLf & "Line 2" See all Topics word <Doug Klippert@ 3:33 AM
Comments:
Post a Comment
|