Idle was telling us:
Idle nous racontait que :
I guess it doesn't matter... When user decides to.
Well, if you are going top write code for this, you have to decide. It
certainly does matter because the code you will use will be different
depending on the answer to that question.
Now, if you can automate this when the document opens, then put the
calculating code in a sub and call this sub from the ThisDocument_Open and
ThisDocument_New Subs. Put the result of the calculation in either a
document variable (Look up "Variables" in the VBA help) or a custom document
property.
If you need to let the user run the calculation at a moment of their
choosing, you will need something to make it happen (a button, a key
combination, etc.)
Then, use a DOCVARIABLE or DOCPROPERRTY field with the other field you
mentioned.
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site:
http://www.word.mvps.org