[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 290
  • Last Modified:

Microsoft Word 2007 - Field

Hello Experts,

I have a Word 2007 document that has a "field" box that automatically inserts today's date. I wanted to know if there was a way to use the "field" box to add 15 or 30 days to the field automatically. Is there a way to configure this using the "field" option?

Thanks!
0
katredrum
Asked:
katredrum
1 Solution
 
Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
Hello,

That's not as trivial as it may seem. The date needs to be plucked apart into its components, then days need to be added to the day and it needs to be ensured that it rolls over into the next month and next year, if required.

See attached. The code {SET Delay 15} adds 15 days. Change to 30 if you want 30 days.

cheers, teylyn
DateFieldCalc.doc
0
 
katredrumAuthor Commented:
Wow, you're the best! I wouldn't have even got close with this one!
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now