A family of Microsoft word processing software products for creating web, email, and print documents.
Use:
{ IF { = { NUMPAGES } - { PAGE } } > 1 "______________________" }
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am using Word 2013. I would like to create an IF statement in the template footer so that it puts page numbers on all pages except for the last two pages which will be left blank. Can you please let me know the correct wording for the statement - thank you,
Ricki
A family of Microsoft word processing software products for creating web, email, and print documents.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Use:
{ IF { = { NUMPAGES } - { PAGE } } > 1 "______________________" }
Hi and thanks for the response. I am actually trying to have signing lines in the footer on all pages except for the last two pages. I have used Control+F9 to create the braces, and have typed the following:
{if{numpages}-{page} > 2 "______" " "}
I get an error: Error! Unknown op code for conditional.
I would appreciate some advice - thanks again,
Ricki
You could use an IF field coded along the lines of:
{IF{NUMPAGES}-{PAGE}> 2 {PAGE}}
Note: The field brace pairs (i.e. '{ }') for the above example are all created in the document itself, via Ctrl-F9 (Cmd-F9 on a Mac); you can't simply type them or copy & paste them from this message. Alternatively, you could add the fields via Word's Insert|Quick Parts|Field dialogue.
You could use an IF field coded along the lines of:
{IF{NUMPAGES}-{PAGE}> 2 {PAGE}}
Note: The field brace pairs (i.e. '{ }') for the above example are all created in the document itself, via Ctrl-F9 (Cmd-F9 on a Mac); you can't simply type them or copy & paste them from this message. Alternatively, you could add the fields via Word's Insert|Quick Parts|Field dialogue.