multipul lines in a cell

J

Jim Peterson

I was wondering if there is a way to make multiple lines in a cell using
visual basic. I know that in excel you can press ALT+ENTER and do this, but
I cannot figure it out using visual basic. Thanks in advance.
Jim
 
P

Paul D

How about something like this
Cells(1, 1).Value = "first line text" & Chr(10) & "second line text"
Paul D
 
E

excel

Hit ALT+ENTER

-----Original Message-----
How about something like this
Cells(1, 1).Value = "first line text" & Chr(10) & "second line text"
Paul D

ALT+ENTER and do this,
but


.
 

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