×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Filling a Word doc with arbitrary text
2

Filling a Word doc with arbitrary text

Filling a Word doc with arbitrary text

(OP)
Many of you Office experts probably already know this, but it is new to me, and it might be new to some of you as well.

When designing the layout of a document in Word, it's often useful to fill it with text. It doesn't matter what the text is. You just want some words to be in place so that you can judge the layout, fonts, colours and so on. In the past, I've copied and pasted whatever text happens to be handy at the moment. It might be from another document, or from a website, or whatever.

It turns out that there is an easier way. Just type the following into the document, then hit Enter:

=rand(p,s)

where p is the number of paragraphs you want, and s is the number of sentences per paragraph. For example:

=rand(6,4)

will give you six paras with four sentences per para.

When you hit Enter, the specified amount of text will appear at the insertion point. As far as I can make out, the text comes from an Office Help file, but you don't need to know that.

Graphical designers traditionally use so-called Lorem Ipsum text for this purpose. If that's what you want, you can type this:

=lorem(p,s)


where, again, p and s represent the number of paragraphs and sentences respectively.

If nothing else, this is a good illustration of the fact that, however well you think you know some software, there is always something new to learn. I've been using Microsoft Word for around 30 years, but I never knew this feature existed.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: Filling a Word doc with arbitrary text

Thanks for sharing Mike. I had no idea.

Duane
Minnesota
Hook'D on Access
MS Access MVP 2001-2016

RE: Filling a Word doc with arbitrary text

Yep, use both rand and lorem quite a lot

>the text comes from an Office Help file

used to be "The quick brown fox" but they changed that years back. But you can get the old one back by using rand.old instead of just rand

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close