To see how to do this and just about everything else you might want to do with dates in Word, check out my Word Date Calculation
Tutorial, at:
http://lounge.windowssecrets.com/index.php?showtopic=249902
or
http://www.gmayor.com/downloads.htm#Third_party
Do read the document's introductory material.
--
Cheers
macropod
[Microsoft MVP - Word]
<ALEM...@officeformac.com> wrote in message news:59baf...@webcrossing.JaKIaxP2ac0...
For what you want to do, the second field example under the heading "Interactively Calculate A Person's Age" (i.e. the formfield
example) is probably the nearest to what you need.
If you bookmark the date in the table cell (not the whole cell) with the name 'BirthDate', the field will return the age to the
nearest year, month and day. You can simple delete whatever you don't need from the part of the field between the following double
quotes:
"Your age is {Years} Year{IF{Years}= 1 "" s}, {Months} Month{IF{Months}= 1 "" s} and {Days} Day{IF{Days}= 1 "" s}."
--
Cheers
macropod
[Microsoft MVP - Word]
<ALEM...@officeformac.com> wrote in message news:59baf...@webcrossing.JaKIaxP2ac0...
Unfortunately, Word doesn't support cell referencing of the kind Excel uses for anything other than basic numbers. Use cell
referencing to refer to a cell containing a date (eg dd/mm/yyyy or dd-mm-yyyy) and Word will oblige you with a division calculation
on the dd/mm/yyyy form or a subtraction calculation on the dd-mm-yyyy form! The only way around that is to use:
. individual bookmarks and field calculations for each bookmark;
. an Excel worksheet embedded in the Word document to do all the calculations; or
. a macro (which you could trigger with a MACROBUTTON field).
--
Cheers
macropod
[Microsoft MVP - Word]
<ALEM...@officeformac.com> wrote in message news:59baf...@webcrossing.JaKIaxP2ac0...