Jump to Real's How-to Main page

Generate text in MS Word

Open a new document in word and type without a space
=rand(10,1)
and press [ENTER] and Word will generate 10 paragraphs with one sentence in each one.

The output with the french version of Word :

Servez à ce monsieur une bière et des kiwis
Servez à ce monsieur une bière et des kiwis
Servez à ce monsieur une bière et des kiwis
Servez à ce monsieur une bière et des kiwis
Servez à ce monsieur une bière et des kiwis
Servez à ce monsieur une bière et des kiwis
Servez à ce monsieur une bière et des kiwis
Servez à ce monsieur une bière et des kiwis
Servez à ce monsieur une bière et des kiwis
Servez à ce monsieur une bière et des kiwis

The output for the english version :

The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog

The first parameter is for how many paragraphs you want and the second parameter controls the length of a paragraph.


If you find this article useful, consider making a small donation
to show your support for this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2006
[ home ]