Thanks Tony,
Using your suggestion I found this article at http://word.mvps.org/FAQs/MacrosVBA/PseudoAutoMacros.htm which worked:
-----------------------------------------------------------
Using Word 97
If you create a DocumentChange event and store it in an Addin, it will be triggered when...
As far as I know any settings on the header would be carried over to all following pages.
Could you not trap the save commands, run a piece of code to check the number of pages and re-write the header and footer accordingly?
e.g.
Sub FileSave()
'On save check number of pages
If...
You need to write the header and footer for the rest of the document first and then set the
'File / Page Setup / Layout / Different first page' check box.
(The VBA for which is
ActiveDocument.PageSetup.DifferentFirstPageHeaderFooter = True)
Then go back and write the header and footer for...
I have modified Normal.dot to add a footer to a new document which works on all occasions except when Word is started.
I have some VBA code running when a new document is created but none of the usual Document_Open() or AutoNew() subs seem to work on the blank document that Word gives you when...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.