Re: Custom Version Number - Update On Button Push Only?



Hi Martin

Martin Hughes wrote:
I am looking for a way to set a version number for my document in the header.

Up to now I have been using the revision number, but that updates every time the doc is saved. I would like a way of updating a version number (perhaps a custom field?) at the push of a button - and ONLY at the push of that button (on a toolbar).

Is this possible? How would I go about it?

Possible, yes, but only with VBA.

You would use a macro which increments a document property or document variable. You can reference the property easily in the document.

If you need help with the code, best ask this in one of the .word.vba forums/newsgroups (translate: I couldn't locate the needed objects in a short time myself, but VBA is clearly out of my area of expertise :-)).

0.2cents
Robert
--
/"\ ASCII Ribbon Campaign | MS
\ / | MVP
X Against HTML | for
/ \ in e-mail & news | Word
.