Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-29-2011, 07:40 AM
edwedw edwedw is offline Calculate date in word field Windows XP Calculate date in word field Office 2003
Novice
Calculate date in word field
 
Join Date: Nov 2011
Posts: 2
edwedw is on a distinguished road
Default Calculate date in word field


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.
Reply With Quote
  #2  
Old 11-30-2011, 04:39 AM
macropod's Avatar
macropod macropod is offline Calculate date in word field Windows 7 64bit Calculate date in word field Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 20,312
macropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant future
Default

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
[MS MVP - Word]
Reply With Quote
  #3  
Old 11-30-2011, 05:40 AM
edwedw edwedw is offline Calculate date in word field Windows XP Calculate date in word field Office 2003
Novice
Calculate date in word field
 
Join Date: Nov 2011
Posts: 2
edwedw is on a distinguished road
Default

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."
Reply With Quote
  #4  
Old 11-30-2011, 02:10 PM
macropod's Avatar
macropod macropod is offline Calculate date in word field Windows 7 64bit Calculate date in word field Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 20,312
macropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant future
Default

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
[MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
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
Calculate date in word field Calculate elapsed time in Word table? Snvlsfoal Word Tables 1 08-11-2011 05:42 AM
Calculate date in word field Birth Date Field in Word Form jaxibobaxi Word VBA 1 07-15-2011 07:35 PM
Calculate date in word field Using Field Codes to Calculate 5 years from a Date 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

Other Forums: Access Forums - Senior Forums

All times are GMT -7. The time now is 05:10 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft