How do I automatically number a word document sequentially from a template?

Anonymous
2023-12-10T16:16:33+00:00

I am trying to create a template for my 'job write-ups' in work.

I was wondering if their was a way I could set a field so that every time I open the template, the "Job Number - X" would increase by 1, so that I don't need to format it every time I create a new document.

Microsoft 365 and Office | Word | Other | MacOS

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. John Korchok 223.5K Reputation points Volunteer Moderator
    2023-12-10T22:26:10+00:00

    You would have to write a VBA macro that stored a variable somewhere. That variable would be the record of the last-used number. Then, when you create a new document, the Macro would read the variable, increment it by 1, then store the updated value. Here are some pages with similar code that can get you started:

    Implement auto-increment with Word macro

    Creating sequentially numbered documents (such as invoices)

    Word Macro - auto increment invoice number

    1 person found this answer helpful.
    0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Bob Jones AKA CyberTaz MVP 429.8K Reputation points
    2023-12-10T20:08:19+00:00

    Contrary to what you've been told a SEQ field is not the solution you need. From the Microsoft Support article on Word Fields:

    The Seq (Sequence) field sequentially numbers chapters, tables, figures, and other items in a document.

    The operative phrase is in a document. It does not sequentially number documents generated from a template.

    If what you want can be done it would have to be handled by a VBA procedure. I'm not skilled enough to make that determination or provide the code but others who lurk here may be able to help.

    0 comments No comments
  3. Bob Jones AKA CyberTaz MVP 429.8K Reputation points
    2023-12-10T20:12:43+00:00

    Have you ever actually done this or bothered to test your solution before submitting it?

    I suggest that you delete your reply before a moderator has to do so.

    0 comments No comments
  4. Jim G 134K Reputation points MVP Volunteer Moderator
    2023-12-11T18:56:30+00:00

    @ Bob

    I deleted the bad reply.

    0 comments No comments