Random text in Microsoft Word documents
You have obviously heard before that you can type =rand() and hit <enter> in a Word document to auto insert paragraphs with the text: "The quick brown fox jumps over the lazy dog".
What is interesting is that this is not a hidden Easter egg. It is a known documented feature, and is described in a Microsoft Knowledge Base article.
Basically, the idea is to quickly add some sample text to a document. Perhaps to test the print margins, the header/footer behavior or to see how the text looks like when you apply the new Style you just created.
I found this really handy when I wanted to test the Booklet printing features in Word and wanted at least 5 pages of text. :)
Now you don't have to blindly type
repeatedly to fill in a document.
Use =rand(p, s) and <enter> to insert p number of paragraphs with s number of sentences.
So, =rand(3,5) would insert 3 paragraphs with each having 5 sentences of "The quick brown fox jumps over the lazy dog".
Go ahead, try something like =rand(100,100)
(note that the maximum number you can give for a parameter is 200)
What is interesting is that this is not a hidden Easter egg. It is a known documented feature, and is described in a Microsoft Knowledge Base article.
Basically, the idea is to quickly add some sample text to a document. Perhaps to test the print margins, the header/footer behavior or to see how the text looks like when you apply the new Style you just created.
I found this really handy when I wanted to test the Booklet printing features in Word and wanted at least 5 pages of text. :)
Now you don't have to blindly type
asdf<enter>
fdsaa<enter>
ds<enter>
dsfdsfs<enter>
repeatedly to fill in a document.
Use =rand(p, s) and <enter> to insert p number of paragraphs with s number of sentences.
So, =rand(3,5) would insert 3 paragraphs with each having 5 sentences of "The quick brown fox jumps over the lazy dog".
Go ahead, try something like =rand(100,100)
(note that the maximum number you can give for a parameter is 200)



6 Comments:
At Dec 17, 2005 1:50:00 AM,
Anonymous said…
Interesting, but sadly this does not work in Microsoft Office Word 2003.
At May 3, 2006 4:37:00 PM,
Anonymous said…
It works in Microsoft Office 2003 if you have "autocorrect as you type" turned on (Tools -> Autocorrect).
At May 3, 2006 4:41:00 PM,
Anonymous said…
This IS an easter egg; it is not documented anywhere in help. Search for =rand(), the Word help agent can't find anything. Attaching it to autocorrect, when there isn't even a related entry in the autocorrect list, shows that it's just a last-minute addon, poorly implemented and more poorly documented.
At Feb 8, 2007 11:14:00 PM,
Anonymous said…
It is not an easter egg. It has been a part of word for YEARS...
At Mar 24, 2008 9:59:00 PM,
Charlotte said…
Word 2007 doesn't use the same text. You get some information about the features of the Insert Tab instead:
On the Insert tab, the galleries include items that are designed to coordinate with the overall look of your document. You can use these galleries to insert tables, headers, footers, lists, cover pages, and other document building blocks. When you create pictures, charts, or diagrams, they also coordinate with your current document look. You can easily change the formatting of selected text in the document text by choosing a look for the selected text from the Quick Styles gallery on the Home tab. You can also format text directly by using the other controls on the Home tab.Most controls offer a choice of using the look from the current theme or using a format that you specify directly. To change the overall look of your document, choose new Theme elements on the Page Layout tab. To change the looks available in the Quick Style gallery, use the Change Current Quick Style Set command. Both the Themes gallery and the Quick Styles gallery provide reset commands so that you can always restore the look of your document to the original contained in your current template.
At Mar 24, 2008 10:00:00 PM,
Charlotte said…
Just in case anyone was marginally interested in what that text was... XD
Post a Comment
<< Home