![]() |
#1
|
|||
|
|||
![]()
I would like to insert a field into a word document that automatically inserts the date next thurday when merdged.
Is this possible without the use of Vba. Thanks for reading. |
#2
|
||||
|
||||
![]()
hi edwedw,
Yes, you can do that, but the field code construction for it is quite complex. To see how to do that and just about everything else you might want to do with dates in Word, check out my Microsoft Word Date Calculation Tutorial: Microsoft Word Date Calculation Tutorial In particular, look at the item titled Calculate a Stepped Date. Do read the document's introductory material.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
![]()
The following part of the document seems to be on the right lines.....but when i 'toggle field code' i cannot make any sense of what is returned.
"Calculate the day & date of a given day of the week next month Thursday, 8 December 2011 Note: The value in {SET Weekday 3} determines the day of the week to return (0 = Mon, 1 = Tues, 2 = Wed, 3 = Thurs, 4 = Fri, 5 = Sat, 6 = Sun), while the value in {SET Week 1} allows you to specify the week of the month. The ‘Limit’ variable is used to prevent the chosen date rolling over into the following month. This also means that setting the Week variable to 5 will always return the last instance of a given weekday occurring in a month." |
#4
|
||||
|
||||
![]()
hi edwedw,
As suggested in my previous post, I think you should be using the example from the item titled Calculate a Stepped Date, NOT the example from the item titled Calculate the day & date of a given day of the week next month. The tutorial topic 'Date and Time Calculations In A Mailmerge' shows how to adapt the other field codes (such as for Calculate a Stepped Date) for use with mailmerges. In general, it is a simple matter of replacing their 'DATE' expressions with 'MERGEFIELD MergeDate', where 'MergeDate' is the name of your mailmerge data field.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Formula to subtract one month from due date field in reminder field | ghumdinger | Outlook | 1 | 10-01-2011 12:09 AM |
![]() |
Snvlsfoal | Word Tables | 1 | 08-11-2011 05:42 AM |
![]() |
jaxibobaxi | Word VBA | 1 | 07-15-2011 07:35 PM |
![]() |
vandy | Word | 1 | 09-23-2009 11:32 AM |
Word - Calculate and paste values from Excel sheet | Augf87 | Word | 1 | 07-06-2009 10:26 AM |