Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Roger-
 
Posts: n/a
Default How do I add two weeks to the current date in word

I need to add two weeks to the current date and place that date in a word
document.
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Doug Robbins - Word MVP
 
Posts: n/a
Default How do I add two weeks to the current date in word

You can use the DateAdd() function in a macro

Selection.InsertBefore Format(DateAdd("d", 20, Date), "MMMM d, yyyy")

Or, Macropod will probably come along and say:

To see how to do this and just about everything else you might want to do
with dates in Word, check out the topic 'Add Or Subtract Two Time Periods'
in my Date Calc 'tutorial', at:
http://www.wopr.com/cgi-bin/w3t/show...?Number=249902



--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Roger-" wrote in message
...
I need to add two weeks to the current date and place that date in a word
document.



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman
 
Posts: n/a
Default How do I add two weeks to the current date in word

Roger- wrote:
I need to add two weeks to the current date and place that date in a
word document.


One way is with a macro:
http://word.mvps.org/FAQs/MacrosVBA/DateOfPrevMonth.htm

Another way is with a complicated field:
http://www.wopr.com/cgi-bin/w3t/show...&Number=249902

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.


  #4   Report Post  
Posted to microsoft.public.word.docmanagement
macropod
 
Posts: n/a
Default How do I add two weeks to the current date in word

Hi Doug,

Actually I wouldn't recommend using 'Add Or Subtract Two Time Periods' -
'Calculate a day, date, month and year, using n (301) days delay' would be
more appropriate. I'd also suggest the OP changes the 301 delay value to 14,
and read the intro on formatting the output.

Cheers

"Doug Robbins - Word MVP" wrote in message
...
You can use the DateAdd() function in a macro

Selection.InsertBefore Format(DateAdd("d", 20, Date), "MMMM d, yyyy")

Or, Macropod will probably come along and say:

To see how to do this and just about everything else you might want to do
with dates in Word, check out the topic 'Add Or Subtract Two Time Periods'
in my Date Calc 'tutorial', at:
http://www.wopr.com/cgi-bin/w3t/show...?Number=249902



--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Roger-" wrote in message
...
I need to add two weeks to the current date and place that date in a word
document.





Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word 97 in Windows XP to maintain formatting Charlie''s Word VBA questions Microsoft Word Help 22 May 20th 23 08:51 PM
Underscore (_) will not always display in RTF files (Word 2002). David A Edge Microsoft Word Help 6 June 14th 05 10:39 AM
is word perfect compatible with office word? Noreen Microsoft Word Help 1 May 11th 05 11:17 PM
Date not updating to the current date on a Networked Word Template Eurkie Microsoft Word Help 3 January 31st 05 03:59 PM
How do I create & merge specific data base & master documents? maggiev New Users 2 January 12th 05 11:30 PM


All times are GMT +1. The time now is 05:12 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"