When printing web page using current page number, it might come at hand to additionally add total page number switch &P, which allows to make Internet Explorer print formatted text like Page 1 of 2, Page 2 of 2 into page footer / header. Alternatively, using footer text / code like Total number of pages &P will result page footer text formatted as Total number of pages 2 (when printed web site fits on two pages).
To print total number of pages, input &P either into header or footer field in Page Setup window.

| Code | Description | Preview |
| &P | Total number of pages. | 2 |
| Pages &P. | Custom text and total number of pages. | Pages 2. |
| (&p of &P) | Current page and total number of pages. | (1 of 2) |