PDA

View Full Version : Multiline Textbox



icu222much
06-28-2010, 12:13 PM
I am wondering how you would code a textbox with multiple lines that does not wrap? For example, suppose you have the string "The brown fox jumped over the yellow fence", and you would like to fit it into a text box with the width of 30 px. The string won't fit into one line, so it has to be split over multiple lines. How would you do this in VBA?

Paul_Hossler
06-29-2010, 03:55 PM
Not sure of your question, but to split a string into multiple lines at a place I choose ...


"The brown fox jumped" & vbCrLf & "over the yellow fence",


Paul

icu222much
06-29-2010, 07:10 PM
Thank you. That did the trick.