Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to enter CRLF in textbox control of user form in Excel

Status
Not open for further replies.

TheAceMan1

Programmer
Sep 23, 2003
11,174
US
Howdy All ...

How can this be done? [surprise]

See Ya! . . . . . .

Be sure to see thread181-473997 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 


hi,
Code:
Textbox.Text = "Now is the time" & vblf & "for all good men"
I simply use vblf but whatever!

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Did you try Ctrl+Enter or even Alt+Enter ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
SkipVought: I should've mentioned I need to do this when the user form is open (thru the user interface)! Sorry about that.
PHV said:
[blue]Did you try Ctrl+Enter or even Alt+Enter ?[/blue]
Yes I did! Thats why I posted ... they don't work. Alt+Enter works fine in a cell and this is what the users know to do to add additional info in a two line cell.

[blue]Your Thoughts? . . .[/blue]

See Ya! . . . . . .

Be sure to see thread181-473997 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
Got It! ...

Hand to set the [blue]MultiLine[/blue] property to true. [blue]Ctrl+Enter[/blue] now works.

Thanks for the assist. [thumbsup2]

See Ya! . . . . . .

Be sure to see thread181-473997 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
Set the EnterKeyBehavior property to True ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top