How do I change a PageRef number from black to the format I want?

K

Kewpie

I'm trying to add page numbers to a ToC that someone created using bookmarks
and references rather than the option available by insert. I can enter this
number with insert field (which I want because I want it to be a hyperlink)
or insert cross-reference, bookmark, then page number--but the number is
ALWAYS in the same format. When I highlight it and try to change the font to
be underlined and the color blue, nothing happens and it remains the same
even though it shows the correct formatting in the preview before I press
okay. It does not show up properly in the print preview, only the web
preview. This is really frustrating, I just want to change a number's format
and I can't. Please help.
 
S

Suzanne S. Barnhill

Page numbers in TOCs are hyperlinked by default, but they do not use the
Hyperlink style (unless you unlink the TOC field) because most users would
not want the TOC to print this way.
 
M

macropod

Hi Kewpie,

If this isn't a Word TOC, but is, as you say, something constructed to look
like one, you can change the formatting of a PAGEREF field (which is what
you get via Insert|Cross-reference) by:
.. selecting it;
.. pressing Ctrl-F9 to expose the field code, which will look like {PAGEREF
BkMrk \h}, where 'BkMrk' is your bookmark's name;
.. inserting '\* Charformat' into the field, thus: {PAGEREF BkMrk \*
Charformat \h};
.. formatting the 'P' in 'PAGEREF' underlined and blue; and
.. pressing F9 to update the field.

Note: Doing this won't change the fields colour if clicked on. For that
you'd need a hyperlink field.

Cheers
 
K

Kewpie

I've done the Charformat thing by exposing the code but when I highlight the
P in pageref and attempt to change the way it is formatted, nothing happens.
On the toolbar it shows it as being blue and underlined even though it is not.

And no I can't delete it and make a regular ToC because the person who made
it likes the way the ToC is formatted in this way--I don't think it should be
that difficult to change the color of a number but it is :(

Also, pressing F9 did not bring up the field codes, I had to right click and
show the codes that way.

macropod said:
Hi Kewpie,

If this isn't a Word TOC, but is, as you say, something constructed to look
like one, you can change the formatting of a PAGEREF field (which is what
you get via Insert|Cross-reference) by:
.. selecting it;
.. pressing Ctrl-F9 to expose the field code, which will look like {PAGEREF
BkMrk \h}, where 'BkMrk' is your bookmark's name;
.. inserting '\* Charformat' into the field, thus: {PAGEREF BkMrk \*
Charformat \h};
.. formatting the 'P' in 'PAGEREF' underlined and blue; and
.. pressing F9 to update the field.

Note: Doing this won't change the fields colour if clicked on. For that
you'd need a hyperlink field.

Cheers

--
macropod
[MVP - Microsoft Word]


Kewpie said:
I'm trying to add page numbers to a ToC that someone created using bookmarks
and references rather than the option available by insert. I can enter this
number with insert field (which I want because I want it to be a hyperlink)
or insert cross-reference, bookmark, then page number--but the number is
ALWAYS in the same format. When I highlight it and try to change the font to
be underlined and the color blue, nothing happens and it remains the same
even though it shows the correct formatting in the preview before I press
okay. It does not show up properly in the print preview, only the web
preview. This is really frustrating, I just want to change a number's format
and I can't. Please help.
 
M

macropod

Hi Kewpie,

If the toolbar shows it as being blue and underlined even though it is not,
you may have a problem with either or both of the display driver or the
printer driver (most likely the former if it's not displaying properly).

Cheers

--
macropod
[MVP - Microsoft Word]


Kewpie said:
I've done the Charformat thing by exposing the code but when I highlight the
P in pageref and attempt to change the way it is formatted, nothing happens.
On the toolbar it shows it as being blue and underlined even though it is not.

And no I can't delete it and make a regular ToC because the person who made
it likes the way the ToC is formatted in this way--I don't think it should be
that difficult to change the color of a number but it is :(

Also, pressing F9 did not bring up the field codes, I had to right click and
show the codes that way.

macropod said:
Hi Kewpie,

If this isn't a Word TOC, but is, as you say, something constructed to look
like one, you can change the formatting of a PAGEREF field (which is what
you get via Insert|Cross-reference) by:
.. selecting it;
.. pressing Ctrl-F9 to expose the field code, which will look like {PAGEREF
BkMrk \h}, where 'BkMrk' is your bookmark's name;
.. inserting '\* Charformat' into the field, thus: {PAGEREF BkMrk \*
Charformat \h};
.. formatting the 'P' in 'PAGEREF' underlined and blue; and
.. pressing F9 to update the field.

Note: Doing this won't change the fields colour if clicked on. For that
you'd need a hyperlink field.

Cheers

--
macropod
[MVP - Microsoft Word]


Kewpie said:
I'm trying to add page numbers to a ToC that someone created using bookmarks
and references rather than the option available by insert. I can enter this
number with insert field (which I want because I want it to be a hyperlink)
or insert cross-reference, bookmark, then page number--but the number is
ALWAYS in the same format. When I highlight it and try to change the
font
to
be underlined and the color blue, nothing happens and it remains the same
even though it shows the correct formatting in the preview before I press
okay. It does not show up properly in the print preview, only the web
preview. This is really frustrating, I just want to change a number's format
and I can't. Please help.
 

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