Word VBA >> weird

by Louise » Thu, 22 Jul 2004 06:13:17 GMT

Hi

I've noticed that if you type =rand() in Word, you
get "The quick brown fox jumps over the lazy dog."
repeated several times. Does anyone know why this happens
and if there are any other "funny" things?

Thanks


Word VBA >> weird

by Jezebel » Thu, 22 Jul 2004 06:33:51 GMT


It's sometimes billed as an easter egg; but more likely it was left behind
by the programmers. Actually quite useful if you need a quick way to fill a
document with text to play with, though I wish they'd picked a more
interesting sentence. It takes two optional arguments:

=Rand(n,m)

one is the number of paragraphs you want, the other the number of sentences
per paragraph. (can't remember which is which)











Word VBA >> weird

by DA » Thu, 22 Jul 2004 09:31:53 GMT

As Jezebel already mentioned it's an easter egg.
There are a few others depending on your Word version.

Check http://www.eggscentral.com/applications/index.html
for details.

Dennis
happens


weird

by Jay Freedman » Thu, 22 Jul 2004 21:34:33 GMT




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

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org




Similar Threads

1. Weird Behaviour : Track Changes Adds Weird Text While Document is Protected


Hi All,
 I am Using Office 2003 Professional Edition with SP1 applied. I am
following these Steps.


1) Create New Document
2) Insert "Number of Pages" Field in the Header of Document
3) Typing some Random text in normal body of page 1 (2-3 lines only)
4) Enable Track Changes (Tools -> Track Changes)
5) Protect Document (tools -> Protect Document)
5b) I select the following options while protecting
         - Limit formatting to a selection of styles
         - Allow only this type of editing (No Changes (Read Only))
         - I Keep 1 or 2 lines of body Text as Exception (so that i can

edit the document)
6) I start copy/pasting the random text to fill the pages
7) As Soon as i reach The 10th Page. The Header (where NumPages field
is) Start Populating with a weird number (some thing like
"111110101010110101... ")
8) Now When i Click "Stop Protection", the number Disappears.


There are 50+ Machines in my organization and each one of them have the

same problem.
Any help in this regard is sincerely appreaciated


With Thanks and regards 
Hammad Bin Arif