![]() |
|
#1
|
||||
|
||||
![]()
If you place your Serial # in the page header or footer it will automatically appear on every page in that Section or any linked Section.
The question remains though, as to how you will control the numbering. There are different ways of doing this and each has advantages & disadvantages. For example, you could use a master copy or template that has a serial # that gets updated each time it's opened. Great for invoice production and the like, but not so good if you're using a document and its number changes every time you open it to read it. In that case a template might be better - you can open the resulting document without its number changing every time. Alternatively, you could use a macro that intercept's the document's printing. That means the master document has to be updated every time a print is made. That could be done by using a FilePrint macro to intercept the standard print functions, so the updating can be assured. Your macro takes a different approach, which relies on the user choosing to use your macro. As for maintaining the update sequencing, I'd suggest storing the serial #s in either a custom document property or an external file, so it can be retrieved for the next print. Alternatively, if there's nothing else in the header or footer, you could just as easily store it there (you could also do so even if there's other content, but you need extra code to allow for that). Using an external file that's updated automatically by the macro means it doesn't matter whether the user remembers to save the document on closing. Alternatively, the print macro could save the document with the updated properties upon printing. In any event, you don't need a bookmark. You can use either a custom document property or a value stored in the header or footer. If you use a custom document property, all you need to display the serial # anywhere in the document is a DOCPROPERTY field at that location.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
Tags |
auto numbering |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Morningside | Word | 4 | 05-19-2014 01:18 PM |
![]() |
UniAdmin | Word VBA | 1 | 02-21-2013 07:25 PM |
![]() |
TimTDP | Word | 1 | 04-18-2012 04:22 AM |
![]() |
Roger1941 | Word VBA | 1 | 01-24-2011 03:26 PM |
varying orientation on a multi-page document??? | imimin | Word | 1 | 08-24-2009 12:12 PM |