From: Karin on
Hi, I am using bookmarks to get page numbers for a TOC (for multiple reasons).
I have update fields at print turned off.
When I enter:
{ ={ PAGEREF D_Activities \h } -1} it works fine. When I Update Fields
manually, it works fine (it's awesome and I'm so happy).
At print it does one of two things:
{ =X PAGEREF D_Activities \h X -1} (where X is actually a square box) and
gives a Syntax error
or this
{ ={ PAGEREF D_Activities \h }{ PAGEREF D_Activities \h } -1} and gives a
Missing Operator error
(it's awful and I'm so frustrated)
How can I get this to print?
From: Stefan Blom on
Since you are using the page number returned by PAGEREF in a calculation,
try removing the \h switch.

--
Stefan Blom
Microsoft Word MVP



"Karin" <Karin(a)discussions.microsoft.com> wrote in message
news:D726B9AD-86CF-420B-BF13-F78B39E9D7AA(a)microsoft.com...
> Hi, I am using bookmarks to get page numbers for a TOC (for multiple
> reasons).
> I have update fields at print turned off.
> When I enter:
> { ={ PAGEREF D_Activities \h } -1} it works fine. When I Update Fields
> manually, it works fine (it's awesome and I'm so happy).
> At print it does one of two things:
> { =X PAGEREF D_Activities \h X -1} (where X is actually a square box) and
> gives a Syntax error
> or this
> { ={ PAGEREF D_Activities \h }{ PAGEREF D_Activities \h } -1} and gives a
> Missing Operator error
> (it's awful and I'm so frustrated)
> How can I get this to print?