View Single Post
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Chariage Returns & Returns in Strings

The built-in value named vbCr represents a paragraph mark (which is a
more accurate name for "carriage return" -- considering that a
typewriter carriage is now mostly obsolete). So you could construct
your string as

Result="Billy went out to the market. His ball was blue." & vbCr & _
"Jerry went to the school. His ball was yellow." & vbCr & _
"Mary stayed at home. She didn't have a ball."

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.


On Sat, 23 Jan 2010 09:15:01 -0800, Dax Arroway
wrote:

I have a Macro that inserts a string of text. The text however are a couple
of paragraphs which need to be broken up. What are the characters to do
this?

My code, for example, says this:
Result="Billy went out to the market. His ball was blue. Jerry went to the
school. His ball was yellow. Mary stayed at home. She didn't have a ball."


What's returned is this:
Billy went out to the market. His ball was blue. Jerry went to the school.
His ball was yellow. Mary stayed at home. She didn't have a ball.

What I'd like returned is this:
Billy went out to the market. His ball was blue.
Jerry went to the school. His ball was yellow.
Mary stayed at home. She didn't have a ball.

How do I do that??? Thanks in advance for any help.
--Dax