Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.