mutli lines in a textbox

G

Guest

Dear All,
how can I write several lines in a text box through VBA
I've tried:
me.textbox1 = "Line1" & chr(13) & "Line2".
but it appears Line1 Line2 in the text box.

What am I missing?
thanks in Advance.
jouj
 
B

BruceM

Try vbCrLf instead of chr(13). I believe that you could add & chr(10) after
chr(13) to accomplish the same thing, but vbCrLf is simpler.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top