|
Microsoft Word users frequently ask, "How do I calculate and
insert a future or past date in a document." An example would
include 30, 60, and 90 day payment due following a dated sale.
Several Word MVP colleagues and newsgroup
contributors have addressed this
topic in newsgroups responses or through their personal websites.
In fellow MVP and friend Graham Mayor's website he explains why adding a number to a
date value in a simple calculation field provides disappointing results
as well as introducing his readers (via link and examples) to a brilliant collection of methods
for performing calculations, including date calculations, using Word fields
perfected by a regular newsgroup contributor that goes by "Macropod" .
This tips page in contrast, provides various macro solutions using VBA or a
combination of VBA and fields.
If you are interested in the pure field methods that work
brilliantly but appear complex, then a visit to Graham's article or to
the articles by Macropod are two good places to to get you started:
Graham Mayor's - Insert a future (or past) date in Word documents
Macropod's - Date Calculations in Word
Ok, so you want to try some VBA/field methods.

Let's start with the example given above. You
have a simple Word table where a sale date is generated by a CREATEDATE
field. You want to calculate and enter the 30, 60, and 90
day payment due dates.
|