URGENT REQUEST!!! PLEASE HELP!!! Random numbering

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am attempting to put a random number generator in the footer of a document.
Is there something I need to do to make this work so that when I print 500
copies it will number each printout with a different number?

If I can get someone who's smarter than I to help out asap, I'd greatly
appreciate it!!!!
 
KDG said:
I am attempting to put a random number generator in the footer of a
document. Is there something I need to do to make this work so that
when I print 500 copies it will number each printout with a different
number?

If I can get someone who's smarter than I to help out asap, I'd
greatly appreciate it!!!!

You can use the technique shown at
http://word.mvps.org/FAQs/MacrosVBA/NumberCopiesOf1Doc.htm. That macro
creates the numbers in sequence. You could use it as is, and just distribute
the copies in random order.

Alternatively, you could change the line

SerialNumber = SerialNumber + 1

to

SerialNumber = Rnd() * NumCopies + 1

to print the numbers in random order. However, this does NOT guarantee that
some numbers in the series won't be generated more than once. That would
take a bit more programming.
 
A random number won't necessarily give you a different number on each one,
how about sequential numbering?
http://word.mvps.org/FAQs/MacrosVBA/NumberDocs.htm
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide


--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top