Automated Numbering in a Template

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
Back
Top