Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Incrementing field code
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. |
#2
|
|||
|
|||
Try
{ = { REF Year } + 1 } (all the {} have to be the special field code braces that you can insert using ctrl-F9) Peter Jamieson "MikeC" wrote in message news 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. |
#3
|
|||
|
|||
{ = {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. "MikeC" wrote in message news 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. |
#4
|
|||
|
|||
?
{ = {CreateDate \@ "yyyy" } + 1 } might be nearer what you had in mind. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Charles Kenyon wrote: { = {CreateDate \@ "dddd" } + 1 } "MikeC" wrote in message news 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. |
#5
|
|||
|
|||
oops
"Graham Mayor" wrote in message ... ? { = {CreateDate \@ "yyyy" } + 1 } might be nearer what you had in mind. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Charles Kenyon wrote: { = {CreateDate \@ "dddd" } + 1 } "MikeC" wrote in message news 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. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Add code to select email field in mailmerge! | Mailmerge | |||
Field code error when printing document | Microsoft Word Help | |||
Date Field Code problems | Mailmerge | |||
How do I use the PRINT field code to ... | Microsoft Word Help | |||
Field code # characters (no spaces) FOR SPECIFIC DOC SECTION | Microsoft Word Help |