Automated Numbering in a Template

G

Guest

Hi

Does anyone know how to insert numbering in the footer of a template, so that each time a new document is opened based on that template the number in the footer of the document increase by 1 each time.

eg template starts at 000
New Doc = 001
Next New Doc = 002
Next Newdoc 003 etc
 
J

Jezebel

You need to use a macro for the purpose. Simplest is an AutoNew macro, saved
in the template. Store the next available number as a custom property in the
template itself. When the macro runs read that value, save it as a
CustomProperty in the new document, increment it and save it back to the
template. To display the value in the document, use a DocProperty field.


pjd said:
Hi

Does anyone know how to insert numbering in the footer of a template, so
that each time a new document is opened based on that template the number in
the footer of the document increase by 1 each time.
 

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

Top