Date field adding

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear all,

I would like to add a field in a word document that given a date stored in a bookmark and a number stored in another bookmark adds the number of days (number bookmark) to the stored date (datebookmark).

Anyone any ideay how to do that without coding?

Kind Regards,
iLDC
 
For date calculations you _can_ use a complex field. See
<URL: http://www.chriswoodman.co.uk/Delayed Dates.htm> and
<URL: http://www.wopr.com/w3tfiles/10-249902-DateCalc.zip>


--

Charles Kenyon

Word New User FAQ & Web Directory:
<URL: http://addbalance.com/word/index.htm>

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide)
<URL: http://addbalance.com/usersguide/index.htm>

See also the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.


iLDC said:
Dear all,

I would like to add a field in a word document that given a date stored in
a bookmark and a number stored in another bookmark adds the number of days
(number bookmark) to the stored date (datebookmark).
 
Hi iLDC,

Check out the vba DateAdd function.

--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
 
Aw c'mon Graham - your macro could hardly be described as simpler than the
field-based solution, which can simply be copied & pasted without the need
to learb vba. For some users, and some applications, that's a real bonus! In
this case, all that might be needed with the field solution (page 3 of the
link) is to point the SET d/m/y and SET Delay fields to the stored date
(datebookmark) and the number of days (number bookmark), respectively.

Cheers
 
I provided both links so the user can make a decision on which is better :)
My macro suggestion is flexible to cover a wide range of date differences.
For a fixed difference it need not be so complicated. I do however concede
that your date solutions are ingenious and respect the work that went into
developing them.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP
E-mail (e-mail address removed)
Web site www.gmayor.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
 
Back
Top