D
DavidC
Hi,
I have a simple task that seems to fit with a small VBA routine.
In essence I want to have a revision number in the header. The easy way is
to simply add the number into the header in 'pagesetup'. However that
requires a conscious descision to set that number up. In practice (for me)
it is a case of updating a project often to answer a management query or for
a meeting and printing the schedule out, and I tend to simply hit the print
button (laziness I know, but it is reality).
What I would like to do is to assign a custom field under properties that
reflects the revision number and that can be used in the page header. From
what I can see the standard pick list does not include those custom fields
setup in the file properties, nor does it include the 'revision' field which
is part of the builtin properties. Setting a routine to update the revision
number and checking to see if in fact the print is a revision is sorted, but
I am struggling to find the code that runs when I click on the 'print
button'. I was hoping that when clicking on the print button, the code would
run, update the revision (if necessary) and reflect that number into the
header/footer, then proceed to the normal dialog box for printing.
any thoughts would be appreciated.
Regards
DavidC
I have a simple task that seems to fit with a small VBA routine.
In essence I want to have a revision number in the header. The easy way is
to simply add the number into the header in 'pagesetup'. However that
requires a conscious descision to set that number up. In practice (for me)
it is a case of updating a project often to answer a management query or for
a meeting and printing the schedule out, and I tend to simply hit the print
button (laziness I know, but it is reality).
What I would like to do is to assign a custom field under properties that
reflects the revision number and that can be used in the page header. From
what I can see the standard pick list does not include those custom fields
setup in the file properties, nor does it include the 'revision' field which
is part of the builtin properties. Setting a routine to update the revision
number and checking to see if in fact the print is a revision is sorted, but
I am struggling to find the code that runs when I click on the 'print
button'. I was hoping that when clicking on the print button, the code would
run, update the revision (if necessary) and reflect that number into the
header/footer, then proceed to the normal dialog box for printing.
any thoughts would be appreciated.
Regards
DavidC