Ask Your Question

Revision history [back]

template page numbering requirement

I have a writer document template with the page number in the footer.

In use I want the page number to be absent if the document only has one page. If the document has two or more pages I want the page number to be present on all pages.

My question is how to do it?

My only idea is with the template to initially set the font colour of the page number to white i.e. invisible. Then with a macro be able to code the condition if the total number of pages is more than 1 set the font colour black. (I already have a macro that does some pre and post save activities.)