Is there a field for putting a future date in the document body?

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

Guest

I send out payment demand notices. Is there a way I can have a field in Word
that would put a must respond by date of 10 days in the future from today's
date on top of the document?
 
1. Open the template you use for these notices.

2. Go to File > Properties. Add a Custom property called RespondBy. Set the
type to Date and add a date value (doesn't matter what date - it's just a
dummy for setup purposes).

3. In the body of the document, where you want the date to appear, insert a
DocProperty field: { DocProperty RespondBy }.

4. Add this macro to the template ---

Public Sub AutoNew()
ActiveDocument.CustomDocumentProperties("RespondBy") = Now + 10
ActiveDocument.Fields.Update
End Sub
 
This is more complex than you might imagine, but it can be done. See
http://addbalance.com/word/datefields2.htm for information on the different
kinds of ways to make a date calculation work. It includes links to
utilities to create the fields and an explanation of different macros that
can be used instead of fields. It also has a link to
www.wopr.com/cgi-bin/w3t/showthreaded.pl?Number=249902 which is a document
with various fields already created.

--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

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


--------- --------- --------- --------- --------- ---------
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top