Reply
 
Thread Tools Display Modes
  #1   Report Post  
MikeC
 
Posts: n/a
Default 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   Report Post  
Peter Jamieson
 
Posts: n/a
Default

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   Report Post  
Charles Kenyon
 
Posts: n/a
Default

{ = {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   Report Post  
Graham Mayor
 
Posts: n/a
Default

?
{ = {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   Report Post  
Charles Kenyon
 
Posts: n/a
Default

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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add code to select email field in mailmerge! Hans Mailmerge 4 February 3rd 05 06:47 AM
Field code error when printing document Olga Microsoft Word Help 1 January 25th 05 06:59 PM
Date Field Code problems TC Mailmerge 3 December 29th 04 10:17 PM
How do I use the PRINT field code to ... Dave Microsoft Word Help 3 December 13th 04 03:06 PM
Field code # characters (no spaces) FOR SPECIFIC DOC SECTION Christian Microsoft Word Help 1 November 28th 04 06:14 PM


All times are GMT +1. The time now is 02:53 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"