Dates

R

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
read:

Please print your reports through period 11 of 2009.

How can I do this?

Thanks in advance.

Rich
 
S

Stefan Blom

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.
 
R

Richard

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)












- Show quoted text -

That worked perfectly -- thank you.
 
S

Stefan Blom

You are welcome.

--
Stefan Blom
Microsoft Word MVP
(Message posted via NNTP)



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)












- Show quoted text -

That worked perfectly -- thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top