Discussion:
Dates
(too old to reply)
Richard
2010-05-25 17:43:55 UTC
Permalink
I would like to have a variable year in my Word Document. I want to
have a sentence that reads, in part,

Please print your reports through period 11 of 2008.

which is fine during 2010, but as soon as it become 2011, I want it to
read:

Please print your reports through period 11 of 2009.

How can I do this?

Thanks in advance.

Rich
Stefan Blom
2010-05-25 18:07:10 UTC
Permalink
Generally, date calculations are complicated in Word. However, in this case, the
following formula field should work:

{ = { DATE \@ "YYYY" } - 2 }

To insert each pair of field delimiters, { }, press Ctrl+F9. Type the code as
shown. Use F9 to update the field. To show/hide field codes, press Alt+F9.
--
Stefan Blom
Microsoft Word MVP
(Message posted via NNTP)
Post by Richard
I would like to have a variable year in my Word Document. I want to
have a sentence that reads, in part,
Please print your reports through period 11 of 2008.
which is fine during 2010, but as soon as it become 2011, I want it to
Please print your reports through period 11 of 2009.
How can I do this?
Thanks in advance.
Rich
Richard
2010-05-26 00:17:29 UTC
Permalink
On May 25, 11:07 am, "Stefan Blom"
Post by Stefan Blom
Generally, date calculations are complicated in Word. However, in this case, the
To insert each pair of field delimiters, { }, press Ctrl+F9. Type the code as
shown. Use F9 to update the field. To show/hide field codes, press Alt+F9.
--
Stefan Blom
Microsoft Word MVP
(Message posted via NNTP)
I would like to have a variable year in my Word Document.  I want to
have a sentence that reads, in part,
Please print your reports through period 11 of 2008.
which is fine during 2010, but as soon as it become 2011, I want it to
Please print your reports through period 11 of 2009.
How can I do this?
Thanks in advance.
Rich- Hide quoted text -
- Show quoted text -
That worked perfectly -- thank you.
Stefan Blom
2010-05-26 18:36:11 UTC
Permalink
You are welcome.
--
Stefan Blom
Microsoft Word MVP
(Message posted via NNTP)



"Richard" <***@gmail.com> wrote in message news:1861c454-3ca4-450a-9ce3-***@k25g2000prh.googlegroups.com...
On May 25, 11:07 am, "Stefan Blom"
Post by Stefan Blom
Generally, date calculations are complicated in Word. However, in this case, the
To insert each pair of field delimiters, { }, press Ctrl+F9. Type the code as
shown. Use F9 to update the field. To show/hide field codes, press Alt+F9.
--
Stefan Blom
Microsoft Word MVP
(Message posted via NNTP)
I would like to have a variable year in my Word Document. I want to
have a sentence that reads, in part,
Please print your reports through period 11 of 2008.
which is fine during 2010, but as soon as it become 2011, I want it to
Please print your reports through period 11 of 2009.
How can I do this?
Thanks in advance.
Rich- Hide quoted text -
- Show quoted text -
That worked perfectly -- thank you.
Loading...