Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Leslie Milton Leslie Milton is offline
external usenet poster
 
Posts: 2
Default Typing =rand(12,5) in Word 2007 inserts a bunch of text. Why?

In an article on tortoiseshell.net, showing how to create a custom footer in
Word 2007 and save it as a Building Block, the author says to type:
=rand(12,5)
to insert a few paragraphs of text. Sure enough, it did.
The text appears to be from a Word Help file.
I've searched high and low for use of the equal sign followed by a function
and argument, to no avail. It's not a field code, for it lacks the curly
braces.
I tried other arguments -- the second seems to specify the number of lines
returned. I'm inclined to try other functions but might just luck out and
find the one that erases all the docx files.
What is this feature?
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Typing =rand(12,5) in Word 2007 inserts a bunch of text. Why?

Hi Leslie,

This is a standard Word feature, and has been for many years.

In versions before 2007, =rand(p,s) produced p paragraphs containing s sentences of "The quick brown fox jumps over the lazy dog".
You can still get that in Word 2007, with rand.old(p,s) - but the spaces between sentences are missing from the 2nd & subsequent
paragraphs, and even the 1st paragraph has only single spaces compared to the double spaces in earlier versions.

As you've found, =rand(p,s) in Word 2007 reproduces text from the help file. Word 2007 also introduced =lorem(p,s), for the editors'
'lorem ipsum dolor ...' text.

With each of these features, omitting the number of paragraphs and sentences from the expression generates a pre-set amount of text.

--
Cheers
macropod
[Microsoft MVP - Word]


"Leslie Milton" wrote in message ...
In an article on tortoiseshell.net, showing how to create a custom footer in
Word 2007 and save it as a Building Block, the author says to type:
=rand(12,5)
to insert a few paragraphs of text. Sure enough, it did.
The text appears to be from a Word Help file.
I've searched high and low for use of the equal sign followed by a function
and argument, to no avail. It's not a field code, for it lacks the curly
braces.
I tried other arguments -- the second seems to specify the number of lines
returned. I'm inclined to try other functions but might just luck out and
find the one that erases all the docx files.
What is this feature?


  #3   Report Post  
Posted to microsoft.public.word.docmanagement
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Typing =rand(12,5) in Word 2007 inserts a bunch of text. Why?

Hi Leslie,

This is a standard Word feature, and has been for many years.

In versions before 2007, =rand(p,s) produced p paragraphs containing s sentences of "The quick brown fox jumps over the lazy dog".
You can still get that in Word 2007, with rand.old(p,s) - but the spaces between sentences are missing from the 2nd & subsequent
paragraphs, and even the 1st paragraph has only single spaces compared to the double spaces in earlier versions.

As you've found, =rand(p,s) in Word 2007 reproduces text from the help file. Word 2007 also introduced =lorem(p,s), for the editors'
'lorem ipsum dolor ...' text.

With each of these features, omitting the number of paragraphs and sentences from the expression generates a pre-set amount of text.

--
Cheers
macropod
[Microsoft MVP - Word]


"Leslie Milton" wrote in message ...
In an article on tortoiseshell.net, showing how to create a custom footer in
Word 2007 and save it as a Building Block, the author says to type:
=rand(12,5)
to insert a few paragraphs of text. Sure enough, it did.
The text appears to be from a Word Help file.
I've searched high and low for use of the equal sign followed by a function
and argument, to no avail. It's not a field code, for it lacks the curly
braces.
I tried other arguments -- the second seems to specify the number of lines
returned. I'm inclined to try other functions but might just luck out and
find the one that erases all the docx files.
What is this feature?


  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default Typing =rand(12,5) in Word 2007 inserts a bunch of text. Why?

See http://word.mvps.org/FAQs/Formatting/DummyText.htm

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

"Leslie Milton" wrote in message
...
In an article on tortoiseshell.net, showing how to create a custom footer
in
Word 2007 and save it as a Building Block, the author says to type:
=rand(12,5)
to insert a few paragraphs of text. Sure enough, it did.
The text appears to be from a Word Help file.
I've searched high and low for use of the equal sign followed by a
function
and argument, to no avail. It's not a field code, for it lacks the curly
braces.
I tried other arguments -- the second seems to specify the number of lines
returned. I'm inclined to try other functions but might just luck out and
find the one that erases all the docx files.
What is this feature?


  #5   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default Typing =rand(12,5) in Word 2007 inserts a bunch of text. Why?

See http://word.mvps.org/FAQs/Formatting/DummyText.htm

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

"Leslie Milton" wrote in message
...
In an article on tortoiseshell.net, showing how to create a custom footer
in
Word 2007 and save it as a Building Block, the author says to type:
=rand(12,5)
to insert a few paragraphs of text. Sure enough, it did.
The text appears to be from a Word Help file.
I've searched high and low for use of the equal sign followed by a
function
and argument, to no avail. It's not a field code, for it lacks the curly
braces.
I tried other arguments -- the second seems to specify the number of lines
returned. I'm inclined to try other functions but might just luck out and
find the one that erases all the docx files.
What is this feature?


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
=rand() does not work in Word 2007. Why? Paje2 Microsoft Word Help 6 November 10th 09 08:28 PM
=rand() not working in Word 2007? Wander88 Microsoft Word Help 4 July 3rd 08 01:17 AM
Word 2007 only inserts the current month when I start typing - BJRinehart Microsoft Word Help 7 October 16th 07 10:06 AM
=rand(), can I get different text? kiwi2000a Microsoft Word Help 2 May 14th 07 08:30 PM
Column with bullets prints text with rand spacing Kevin M Tables 1 April 11th 06 09:25 AM


All times are GMT +1. The time now is 05:03 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"