by Allen Wyatt
(last updated January 27, 2017)
Often it is helpful to have not only a page number in your document header or footer, but also an indication of how many pages there are in the entire document. For instance, you could include information such as Page 1 of 432 (or however many pages are in your document). This is easy enough to do with Word, and the program even provides an AutoText entry that allows you to easy add the Page X of Y notation in your header or footer.
The problem is that it may not work properly or consistently. Sometimes the correct numbers appear when you use Print Preview, but they don't print properly. Sometimes they print properly, even though they don't show up correctly in Print Preview. The exact behavior of this feature depends on the version of Word you are using, and perhaps the current phase of the moon. (Just a little tongue-in-cheek lunar humor there. The moon has no discernable effect on the performance of Word, as far as I can tell.)
The X of Y problem first cropped up in Word 97, and has amazingly (and persistently) continued into later versions of the software. The general guidance is to update to the latest service pack for whatever version of Word you are using. (Service releases for Word are available at the Microsoft Web site.) Understand, however, that there have been reports that the latest service packs don't always fix the problem.
If you would like more information on the X of Y problem, including workarounds that you can use in case the service pack updates don't do the trick, make sure you visit the Word MVP site:
WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (1311) applies to Microsoft Word 97, 2000, 2002, and 2003.
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!
Imagine that you go to print your document, and all the text you can see on the screen just isn't there on the ...Discover More
Have a bunch of documents you need to print? If all the documents are open, you can use a handy little macro to print ...Discover More
It is often helpful to have a list of all the documents in a given directory or folder. Word doesn't have a built-in way ...Discover More
FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
Got a version of Word that uses the menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon interface.