Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Word 97 in Windows XP to maintain formatting | Microsoft Word Help | |||
Underscore (_) will not always display in RTF files (Word 2002). | Microsoft Word Help | |||
is word perfect compatible with office word? | Microsoft Word Help | |||
Date not updating to the current date on a Networked Word Template | Microsoft Word Help | |||
How do I create & merge specific data base & master documents? | New Users |