See
Those are three tools that can assist with this problem. The macro solves the problem once in one document. The Add-In uses the macro to be available in all documents. The toolkit lets you examine and change the settings for headers/footers and page numbering in every section of your document.