pageref field is always set to 0

M

Michelle

I am trying to put in a page reference that will print the page that certain
figures are on. The hyperlinks link to the correct figure, but the page text
is always coming up as 0.

for instance my page field is
{PAGEREF _Ref80209298 \# "Arabic"\* Arabic \h \p }

The page that this reference is on is 59, but the field returns 0.
 
J

Jay Freedman

Michelle said:
I am trying to put in a page reference that will print the page that
certain figures are on. The hyperlinks link to the correct figure,
but the page text is always coming up as 0.

for instance my page field is
{PAGEREF _Ref80209298 \# "Arabic"\* Arabic \h \p }

The page that this reference is on is 59, but the field returns 0.

I think you've gone way overboard with the field switches. For one thing,
the \# switch (called the "numeric picture switch" in the Help topic of that
title) isn't supposed to say "Arabic". The \* Arabic switch is the default
value, so that's unnecessary. The \p switch is supposed to make the field
result say "above" or "below" when the field is on the same page with the
reference point, but it does nothing when combined with an explicit \*
switch, so that's also unnecessary.

Try paring your field code down to just

{PAGEREF _Ref80209298 \h }

and see if that works better.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
H

Herb Tyson [MVP]

Overboard as it was, when I used his switches to see if that were the
problem, it correctly resolves to the page number on which the bookmark
resides. This is in Word 2007, though, so I suppose it's possible there'd be
different results in an earlier version.
 
S

Stefan Blom

FWIW, the switches work fine in Word 2000 too.

--
Stefan Blom
Microsoft Word MVP


in message
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top