View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips[_3_] Bob Phillips[_3_] is offline
external usenet poster
 
Posts: 2,420
Default Can I insert 'carriage/line returns' in text string?

="Name: Jim Smith"&CHAR(10)&
"Age: 29"&CHAR(10)&
"City: New York"

--
__________________________________
HTH

Bob

"DC-Frank" wrote in message
...
Is there a function or code to enter 'carriage returns' in a text string?
I
am using concatenate functions to extract and combine text and field names
from a spreadsheet. The final (one cell) text of the row or 'record' is
easier to share/confirm with those without access to the spreadsheet since
I
can then copy/paste the text from the one cell into an email. Currently,
I
don't know how to force the formatting or if it is possible. Currently
the
cell looks like: Name: Jim Smith Age: 29 City: New York. I'd like the
text
to be formatted with line returns like this:
Name: Jim Smith
Age: 29
City: New York