Solved

Microsoft Word 2007 - Field

Posted on 2011-02-16
2
270 Views
Last Modified: 2012-05-11
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
Comment
Question by:katredrum
2 Comments
 
LVL 50

Accepted Solution

by:
Ingeborg Hawighorst earned 500 total points
ID: 34912527
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
 
LVL 1

Author Closing Comment

by:katredrum
ID: 34912552
Wow, you're the best! I wouldn't have even got close with this one!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is written from a 'VBA for MS Word' perspective, but I am sure it applies to most other MS Office components where VBA is used.  One thing that really bugs me is slow code, ESPECIALLY when it's mine!  In programming there are so many ways to…
Quality of Service (QoS) options are nearly endless when it comes to networks today. This article is merely one example of how it can be handled in a hub-n-spoke design using a 3-tier configuration.
This video teaches the viewer how to align pictures around text while keeping the text properly aligned in the document.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question