Incrementing Numbers in Word 2002

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

Guest

I'd like to know how I can set a number field in a form template to
auto-increment every time a new document is created and saved from the
template.
 
Hi Erika:

There are several ways to do what you want to do. What you want can be done
by writing to the registry every time the template is opened. It requires
that you have a popup UserForm which initiates the opening code when the
template is run. You can have a Jet 4.0 table that holds the number count, or
if you wish to get fancy, you can write the opening number to the registry
(only moderately difficult).

You also need to decide when you wish to auto-increment the number- when the
template is opened, or when the document is saved.

How exactly do you wish to approach this?

Al
 
Actually, you posted twice about this and Graham has answered your question
already. If you have any difficulty, I can show you my routine which is only
slightly different.

Cheers,
Al
 
Back
Top