Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Automatic Numbers with Leading Zeroes.
Written by Allen Wyatt (last updated April 9, 2024)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365
Word provides a tool that allows you to add automatic numbering to paragraphs; this tool has been discussed in other WordTips. At some point you may want to add leading zeros to your numbering, such as with 00001, 00002, 00003, etc.
If you add the leading zeros to what you type (type four zeros, the number one, a period, a tab, and your paragraph text), then when you press Enter Word will format the paragraph, so it is numbered. The problem is that all of your leading zeros are, with the exception of one of them, removed in the process. This means that you end up with 01 instead of 00001 at the beginning of the paragraph.
You can, if you desire, customize the way the numbering is done. (In the Numbering tool drop-down list choose Define New Number Format to display the appropriate dialog box.) You can then add additional zeros to the beginning of the format for the paragraph.
One drawback to this approach is that the zeros you add are not really a part of the format; they are, instead, just additional characters that precede the numbers managed by Word. This isn't a problem until you get more than 99 items in your numbered list. The number 00099 looks fine, but the next paragraph will be 000100, which is obviously wrong. You could then adjust the formatting of the paragraph so you only have two extra zeros at the lead and that numbering starts at 100 with that paragraph, but this can be bothersome when you later add or remove paragraphs from within your numbered list.
Because of this drawback, many people use a different method of automatic numbering when special formats (like the leading zeros) are needed. The most common approach is to use the SEQ field. For example, you could use the following format to implement the leading zeros:
{SEQ MyList \# "00000"}
Using a SEQ field like this at the beginning of each of your paragraphs will provide the leading-zero numbers that you want. You'll need to update the fields after making any changes to the list, but you'll get the results you want.
WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (10609) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365. You can find a version of this tip for the older menu interface of Word here: Automatic Numbers with Leading Zeroes.
Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!
When you convert a paragraph to a numbered list, Word adds a number at the start of the paragraph, as you would expect. ...
Discover MoreType what Word thinks is a numbered list, and it will helpfully format the text to match what it thinks your numbered ...
Discover MoreIf you have a numbered list in a document, you might want to convert it to regular, non-dynamic text and not lose the ...
Discover MoreFREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
2023-03-26 20:34:05
I have been searching about adding an Invoice/statement number that will update to the next number in the sequence when I right click and choose update field. I would also like to have the Invoice/statement number to have zeroes in front of the number until it reaches 099 and then change to 100, how do I do that? I have read one of the tips by a Dave such and such about adding zeroes in front of the number in SEQ fields and he says to add additional fields but he doesn't explain how to do that. I know my way around Word but I am not that informed in all the functioning's of Word 2013. Can you elaborate on how to do this? I am including an image (see Figure 1 below) . From your article above, MyList is your Identifier or your Bookmark? I understand the Identifier is what you are calling the SEQ, right? Can you explain what each of these mean after SEQ..."SEQ Identifier [Bookmark] [Switches]?
Thank you for your help and time.
Figure 1.
Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.
Visit the WordTips channel on YouTube
FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments