First, NO SECTION BREAKS to do this. Section breaks are good things when you need them, otherwise they cause confusion and delay. You do not need a section break to do this.
See
How to control the page numbering in a Word document.You will be operating in the footer. So make sure you can type in the footer.
- Type what you want to appear in the footer. There should be no quotation marks.
- Put that in quotation marks.
- In front of that type: "If page = numpages " without the quotation marks but with the space at the end.
- Select "page" and press Ctrl+F9 and then F9.
- Select "numpages " and press Ctrl+F9 and then F9.
- Select the entire footer except for the final paragraph mark. (You are showing paragraph marks, right?) Then press Ctrl+F9 and then F9.
Ctrl+F9 creates the braces for a field.
F9 updates the field and hides the field code, showing the results.
If you press
Alt+F9 you should see something like the following in your footer:
{ IF
{ Page
} =
{ NumPages
} "my footer contents to show only on last page" "footer to show on every page except last page"
}
If you did that, press
Alt+F9 again to toggle back to displaying field results rather than codes. Remember that the field braces must be inserted in pairs using
Ctrl+F9, not simply typed.
Using Fields in Microsoft Word
Sections / Headers and Footers in Microsoft Word 2007-2013