Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default multipul lines in a cell

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default multipul lines in a cell

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

"Jim Peterson" wrote in message
...
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




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default multipul lines in a cell

Hit ALT+ENTER


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

line text"
Paul D

"Jim Peterson" wrote in message
. ..
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




.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default multipul lines in a cell

activecell.Value = "ABCD" & chr(10) & "CDEF"

format the cell to wrap text.

--
Regards,
Tom Ogilvy



Jim Peterson wrote in message
...
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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sending multipul e-mail from excel Carl R[_2_] Excel Discussion (Misc queries) 1 September 22nd 09 10:18 AM
inserted lines move how to place lines in proper cell? Deschi Excel Worksheet Functions 0 February 8th 09 01:15 PM
text in multipul cells Brendon Excel Discussion (Misc queries) 3 November 17th 08 10:32 PM
Multipul Filters TheRook Excel Discussion (Misc queries) 1 June 23rd 06 03:34 PM
Multipul Functions Wolfwillows Excel Worksheet Functions 1 March 6th 06 05:19 AM


All times are GMT +1. The time now is 02:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"