Incrementing field code

M

MikeC

I have a Word document in which I use Ask and Ref field codes to input the
current year. The field is called "Year". In a few sentences, I'd like to
automatically increment the current year upward by one. So I have tried a
field code of Ref Year +1, but that just returns the current year. Any ideas?

Thanks.
 
P

Peter Jamieson

Try

{ = { REF Year } + 1 }

(all the {} have to be the special field code braces that you can insert
using ctrl-F9)

Peter Jamieson
 
C

Charles Kenyon

{ = {CreateDate \@ "dddd" } + 1 }
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
G

Graham Mayor

?
{ = {CreateDate \@ "yyyy" } + 1 }

might be nearer what you had in mind.


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
C

Charles Kenyon

oops
:)
Graham Mayor said:
?
{ = {CreateDate \@ "yyyy" } + 1 }

might be nearer what you had in mind.


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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