In Notepad, how do I write a footer to print "Page # of Total Pages"?

NOTEPAD FOOTER: Page &p of &??????; will print "Page 1 of 10" or whatever the total number of pages are.
|
Notepad's page Setup is rather rudimentary and does not provide for 'number of pages'. The available commands are:

   &l        Left-align the characters that follow
   &c        Center the characters that follow
   &r        Right-align the characters that follow
   &d        Print the current date
   &t        Print the current time
   &f        Print the name of the document
   &p        Print the page number

Source: Changing Header and Footer Commands in Notepad

12 people found this reply helpful

Was this reply helpful?

Yes
No

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Already knew this information. Sorry, but no help.

Was this reply helpful?

Yes
No

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Found this page earlier today when looking for the same answer. This one was not helpful. Now it should be

What your looking for is "Page &p of &P" 

24 people found this reply helpful

Was this reply helpful?

Yes
No

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

@Molten360;

Thanks for taking the time to offer that proposed solution. Unfortunately, I could not get this working in Windows 7' native Notepad utility (the subject of this inquiry). Could you share a few more details on what operating system and other particulars under which you managed this? The version and build of Notepad can be found under Help, About. My own was,

Version 6.1 (Build 7601: Service Pack 1)

2 people found this reply helpful

Was this reply helpful?

Yes
No

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated September 9, 2021 Views 5,270 Applies to: