I have got this document that I have to print every year and I want to
automize it.

So, I am creating a template with all things that are nearly the same for
each year. This includes the year it was saved in the header (no problem
there, SaveDate \@YYYY does the trick) but I also need the year before that.
This is my problem, I cannot do any calculations on the SaveDate it seems or
if I can, I must be doing it all wrong.

Can somebody help me out?

Re: How do I get the year before the savedate of a document? by Jay

Jay
Tue Feb 22 12:53:02 CST 2005

OverdooZ wrote:
> I have got this document that I have to print every year and I want to
> automize it.
>
> So, I am creating a template with all things that are nearly the same
> for each year. This includes the year it was saved in the header (no
> problem there, SaveDate \@YYYY does the trick) but I also need the
> year before that. This is my problem, I cannot do any calculations on
> the SaveDate it seems or if I can, I must be doing it all wrong.
>
> Can somebody help me out?

Try nesting the SaveDate field inside a formula field like this:
{ = {SaveDate \@YYYY} - 1 }

To do this, type the = before the SaveDate field and the - 1 after it, then
select the whole thing and press Ctrl+F9.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org



Re: How do I get the year before the savedate of a document? by overdoos

overdoos
Wed Feb 23 05:27:03 CST 2005

Thanks for trying to help me out, however it did not work because it gives me
a syntax error on the '{' that is before the savedate.

Maybe it will help a bit if I mention that I'm running a version of MS Word
2002 SP1 on Windows XP SP1

I'm thankful for every idea that might help get underway.

"Jay Freedman" wrote:

> OverdooZ wrote:
> > I have got this document that I have to print every year and I want to
> > automize it.
> >
> > So, I am creating a template with all things that are nearly the same
> > for each year. This includes the year it was saved in the header (no
> > problem there, SaveDate \@YYYY does the trick) but I also need the
> > year before that. This is my problem, I cannot do any calculations on
> > the SaveDate it seems or if I can, I must be doing it all wrong.
> >
> > Can somebody help me out?
>
> Try nesting the SaveDate field inside a formula field like this:
> { = {SaveDate \@YYYY} - 1 }
>
> To do this, type the = before the SaveDate field and the - 1 after it, then
> select the whole thing and press Ctrl+F9.
>
> --
> Regards,
> Jay Freedman
> Microsoft Word MVP FAQ: http://word.mvps.org
>
>
>

Re: How do I get the year before the savedate of a document? by Jay

Jay
Wed Feb 23 13:57:44 CST 2005

Both sets of braces in the field have to be field delimiters inserted with
Ctrl+F9 (or through the Insert > Field dialog), not typed { } characters. I
assumed that you already had a working SaveDate field in place.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

overdoos wrote:
> Thanks for trying to help me out, however it did not work because it
> gives me a syntax error on the '{' that is before the savedate.
>
> Maybe it will help a bit if I mention that I'm running a version of
> MS Word 2002 SP1 on Windows XP SP1
>
> I'm thankful for every idea that might help get underway.
>
> "Jay Freedman" wrote:
>
>> OverdooZ wrote:
>>> I have got this document that I have to print every year and I want
>>> to automize it.
>>>
>>> So, I am creating a template with all things that are nearly the
>>> same for each year. This includes the year it was saved in the
>>> header (no problem there, SaveDate \@YYYY does the trick) but I
>>> also need the year before that. This is my problem, I cannot do any
>>> calculations on the SaveDate it seems or if I can, I must be doing
>>> it all wrong.
>>>
>>> Can somebody help me out?
>>
>> Try nesting the SaveDate field inside a formula field like this:
>> { = {SaveDate \@YYYY} - 1 }
>>
>> To do this, type the = before the SaveDate field and the - 1 after
>> it, then select the whole thing and press Ctrl+F9.
>>
>> --
>> Regards,
>> Jay Freedman
>> Microsoft Word MVP FAQ: http://word.mvps.org



Re: How do I get the year before the savedate of a document? by Doug

Doug
Wed Feb 23 18:12:43 CST 2005

Was that { entered from the keyboard or by using Ctrl+F9. You must enter
all field delimiters by using Ctrl+F9.

If you do that, it will work, regardless of the version of Word or Windows.

--
Please respond to the Newsgroup for the benefit of others who may be
interested. Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP
"overdoos" <overdoos@discussions.microsoft.com> wrote in message
news:72449E49-39CB-4A45-86CC-03B8475706C0@microsoft.com...
> Thanks for trying to help me out, however it did not work because it gives
> me
> a syntax error on the '{' that is before the savedate.
>
> Maybe it will help a bit if I mention that I'm running a version of MS
> Word
> 2002 SP1 on Windows XP SP1
>
> I'm thankful for every idea that might help get underway.
>
> "Jay Freedman" wrote:
>
>> OverdooZ wrote:
>> > I have got this document that I have to print every year and I want to
>> > automize it.
>> >
>> > So, I am creating a template with all things that are nearly the same
>> > for each year. This includes the year it was saved in the header (no
>> > problem there, SaveDate \@YYYY does the trick) but I also need the
>> > year before that. This is my problem, I cannot do any calculations on
>> > the SaveDate it seems or if I can, I must be doing it all wrong.
>> >
>> > Can somebody help me out?
>>
>> Try nesting the SaveDate field inside a formula field like this:
>> { = {SaveDate \@YYYY} - 1 }
>>
>> To do this, type the = before the SaveDate field and the - 1 after it,
>> then
>> select the whole thing and press Ctrl+F9.
>>
>> --
>> Regards,
>> Jay Freedman
>> Microsoft Word MVP FAQ: http://word.mvps.org
>>
>>
>>



Re: How do I get the year before the savedate of a document? by OverdooZ

OverdooZ
Thu Feb 24 10:57:08 CST 2005

Thank you both for the answer. I feel soooo stupid now ;)

I had indeed a working SaveDate, but had been messing with it to get the
previous year working and forgot to put it back to the 'pure' formatted
savedate before I tried your solution.

Anyway, it works like a charm now.

thanks

"Doug Robbins" wrote:

> Was that { entered from the keyboard or by using Ctrl+F9. You must enter
> all field delimiters by using Ctrl+F9.
>
> If you do that, it will work, regardless of the version of Word or Windows.
>
> --
> Please respond to the Newsgroup for the benefit of others who may be
> interested. Questions sent directly to me will only be answered on a paid
> consulting basis.
>
> Hope this helps,
> Doug Robbins - Word MVP
> "overdoos" <overdoos@discussions.microsoft.com> wrote in message
> news:72449E49-39CB-4A45-86CC-03B8475706C0@microsoft.com...
> > Thanks for trying to help me out, however it did not work because it gives
> > me
> > a syntax error on the '{' that is before the savedate.
> >
> > Maybe it will help a bit if I mention that I'm running a version of MS
> > Word
> > 2002 SP1 on Windows XP SP1
> >
> > I'm thankful for every idea that might help get underway.
> >
> > "Jay Freedman" wrote:
> >
> >> OverdooZ wrote:
> >> > I have got this document that I have to print every year and I want to
> >> > automize it.
> >> >
> >> > So, I am creating a template with all things that are nearly the same
> >> > for each year. This includes the year it was saved in the header (no
> >> > problem there, SaveDate \@YYYY does the trick) but I also need the
> >> > year before that. This is my problem, I cannot do any calculations on
> >> > the SaveDate it seems or if I can, I must be doing it all wrong.
> >> >
> >> > Can somebody help me out?
> >>
> >> Try nesting the SaveDate field inside a formula field like this:
> >> { = {SaveDate \@YYYY} - 1 }
> >>
> >> To do this, type the = before the SaveDate field and the - 1 after it,
> >> then
> >> select the whole thing and press Ctrl+F9.
> >>
> >> --
> >> Regards,
> >> Jay Freedman
> >> Microsoft Word MVP FAQ: http://word.mvps.org
> >>
> >>
> >>
>
>
>