Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using MSWord to create a document to plan my week, I want to automatically update a date range automatically before I print it.

e.g. for today's date I'd want to display

18/06/2012 - 29/06/2012

I have inserted a Field with DATE for the first half, but want to automatically calculate the second by inserting e.g. DATE+11.

How can I do this?

share|improve this question
up vote 1 down vote accepted

This seems to be a lot more complicated than it appears.

This link gives instructions on how to do it: http://www.gmayor.com/insert_a_date_other_than_today.htm

And because this is so complicated, here is a Word document with macros for various date functions: http://www.gmayor.com/Zips/DateCalc.zip

share|improve this answer
    
Not so complicated for the single case: Sub IncrementDateByElevenDays() Selection.InsertDateTime Format((Date + 11), "dd/MM/yyyy") End Sub – StuperUser Jun 19 '12 at 10:46
    
Unfortunately, using a macro doesn't automatically update the field when opening the document. Is there a way to do this? – StuperUser Jun 19 '12 at 15:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .