Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / March 2005

Tip: Looking for answers? Try searching our database.

Incrementing field code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MikeC - 10 Mar 2005 00:17 GMT
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.
Peter Jamieson - 10 Mar 2005 10:05 GMT
Try

{ = { REF Year } + 1 }

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

Peter Jamieson
>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
[quoted text clipped - 4 lines]
>
> Thanks.
Charles Kenyon - 12 Mar 2005 15:14 GMT
{ = {CreateDate \@ "dddd" } + 1 }
Signature

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.

>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
[quoted text clipped - 4 lines]
>
> Thanks.
Graham Mayor - 12 Mar 2005 16:35 GMT
?
{ = {CreateDate \@ "yyyy" } + 1 }

might be nearer what you had in mind.

Signature

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

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> { = {CreateDate \@ "dddd" } + 1 }
>
[quoted text clipped - 6 lines]
>>
>> Thanks.
Charles Kenyon - 12 Mar 2005 17:00 GMT
oops
:)
> ?
[quoted text clipped - 12 lines]
>>>
>>> Thanks.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.