Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / December 2004

Tip: Looking for answers? Try searching our database.

insert a future date in document based on current date

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bpj - 10 Dec 2004 10:57 GMT
I'm trying to get a document to automatically generate a date in the future
using the current date as a basis.

Thought of using the VB DateAdd function with DateAdd ("d", 3, Date) and get
a compilation error.

Anyone know what I'm doing wrong?
Doug Robbins - 10 Dec 2004 11:10 GMT
MsgBox DateAdd("d", 3, Date)

works fine here.  Maybe it's something else in your code.
Signature

Please respond to the Newsgroup for the benefit of others who may be
interested.   Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP

> I'm trying to get a document to automatically generate a date in the
> future
[quoted text clipped - 5 lines]
>
> Anyone know what I'm doing wrong?
Charles Kenyon - 10 Dec 2004 18:59 GMT
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 pages
with fields and an explanation of different macros that can be used instead
of fields.
Signature


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

See also the MVP FAQ: 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.

> I'm trying to get a document to automatically generate a date in the
> future
[quoted text clipped - 5 lines]
>
> Anyone know what I'm doing wrong?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.