Solved

How do I enter this year - 2 and this year -1 into my word document as a word field?

Posted on 2012-03-19
3
184 Views
Last Modified: 2012-03-20
I need to write 2010 - 2011 based on the current year being 2012. How do I do this in Word 2003?

Please describe the merge fields and the actual key presses necessary to achieve the proper format. Telling me the merge code won't indicate to me how to generate it the right way.
0
Comment
Question by:dovidf
  • 2
3 Comments
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 500 total points
ID: 37741361
You need to use two fields, a formula field and a date field. The data field must be formatted with a data switch to produce the year only, andthe formula field is just that result minus 2.

Enter the formula field, using ctrl + F9 to produce the curly brackets, so that it looks like this:

{= - 2}.

the put the cursor after the equals sign, press Ctrl+F9 again to produce a second set of curly brackets, and enter the Date field name and the switch, so that the whole thing looks like this:

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

You can toggle to the result view with Alt +F9. You may have to force the field to update by selecting it and pressing F9.
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 37741389
Oops. In the second sentence, I twice used the word 'data', when 'date' would have been better.
0
 
LVL 3

Author Closing Comment

by:dovidf
ID: 37743619
It took a little fiddling but it did the trick.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

The Selection object is designed for user interaction. It has a Range property, so it can be used in most places that a Range object can. Recorded macros must use the Selection because they are simply copying what the user is doing. A Range prope…
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…
This video walks the viewer through the process of creating a watermark for their document, customizing it, and saving it for viewing/printing needs.
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…

777 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