Format Changing in Referenced Bookmarks

B

Beth

Hi there,

I have a number of bookmarks in a template which I reference in several
different areas of the document (ie, they're initially on the coversheet - at
a large font - then I've referenced them in the headers and other areas of
the document). When I run the template the format of the "referenced
bookmarks" changes to the size of the original bookmark. The confusing part
is some of them are fine (ie, they don't change and stay to the format I've
set them at) but others do change.

Is there something I'm doing incorrectly, a setting I'm missing, or extra
code I need to put in?

Using VBA in Word 2002 - I insert the bookmark [bookmark] then go to the
other areas I need the text and select: Insert, Reference, Cross-reference,
Bookmark, Bookmark Text.

Thanks kindly for any advice
Beth
 
M

macropod

Hi Beth,

Do you mean the cross-reference fields are keeping the correct formats? Or
the bookmarked text the cross-reference fields are referring to?

If it's the former, try adding a Charformat switch to each of your REF
fields (eg {REF BkMrk \* Charformat}, and making sure the first
alpha-numeric character in each field (probably the 'R' in 'REF') is
formatted to match the underlying paragraph.

Programmatically, you could do this by inserting an empty field, then
inserting "REF" & "BkMrk" & "\* Charformat", where 'BkMrk' is your bookmark
name. Alternatively, insert a REF field with "BkMrk" & "\* Charformat".

Cheers
 
B

Beth

Thanks so much for your reply. Actually, the cross-referenced
fields/bookmarks are the ones that are changing. The initial bookmarks are
on the cover page, then I've referenced the bookmarks in the headers. So for
instance I've got the PROCNUM (procedure number) as a bookmark on the cover
page as Arial 14pt Bold, in the header I've referenced it but it should be
Arial 12pt no bold. I changed the font of the referenced field to arial 12
no bold - it looks great, but as soon as I run the template the switch takes
place. An even stranger occurence is the font will go half 12pt and half
14pt. The thing that baffles me the most is the change only happens to one
or two of them (out of quite a number of bookmarks) and I "think" I'm doing
them all the same way.

On another note, I've looked at the other posts so not to bother you with
duplicate questions, but I'm not so well versed in code (still learning : )
and wasn't quite sure how to put the code you provided in.

Thanks again
Beth

macropod said:
Hi Beth,

Do you mean the cross-reference fields are keeping the correct formats? Or
the bookmarked text the cross-reference fields are referring to?

If it's the former, try adding a Charformat switch to each of your REF
fields (eg {REF BkMrk \* Charformat}, and making sure the first
alpha-numeric character in each field (probably the 'R' in 'REF') is
formatted to match the underlying paragraph.

Programmatically, you could do this by inserting an empty field, then
inserting "REF" & "BkMrk" & "\* Charformat", where 'BkMrk' is your bookmark
name. Alternatively, insert a REF field with "BkMrk" & "\* Charformat".

Cheers

--
macropod
[MVP - Microsoft Word]


Beth said:
Hi there,

I have a number of bookmarks in a template which I reference in several
different areas of the document (ie, they're initially on the coversheet - at
a large font - then I've referenced them in the headers and other areas of
the document). When I run the template the format of the "referenced
bookmarks" changes to the size of the original bookmark. The confusing part
is some of them are fine (ie, they don't change and stay to the format I've
set them at) but others do change.

Is there something I'm doing incorrectly, a setting I'm missing, or extra
code I need to put in?

Using VBA in Word 2002 - I insert the bookmark [bookmark] then go to the
other areas I need the text and select: Insert, Reference, Cross-reference,
Bookmark, Bookmark Text.

Thanks kindly for any advice
Beth
 
D

Doug Robbins - Word MVP

Add a \* charformat switch to the { REF } field and apply the desired
formatting to the R of REF

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

Beth said:
Thanks so much for your reply. Actually, the cross-referenced
fields/bookmarks are the ones that are changing. The initial bookmarks
are
on the cover page, then I've referenced the bookmarks in the headers. So
for
instance I've got the PROCNUM (procedure number) as a bookmark on the
cover
page as Arial 14pt Bold, in the header I've referenced it but it should be
Arial 12pt no bold. I changed the font of the referenced field to arial
12
no bold - it looks great, but as soon as I run the template the switch
takes
place. An even stranger occurence is the font will go half 12pt and half
14pt. The thing that baffles me the most is the change only happens to
one
or two of them (out of quite a number of bookmarks) and I "think" I'm
doing
them all the same way.

On another note, I've looked at the other posts so not to bother you with
duplicate questions, but I'm not so well versed in code (still learning
: )
and wasn't quite sure how to put the code you provided in.

Thanks again
Beth

macropod said:
Hi Beth,

Do you mean the cross-reference fields are keeping the correct formats?
Or
the bookmarked text the cross-reference fields are referring to?

If it's the former, try adding a Charformat switch to each of your REF
fields (eg {REF BkMrk \* Charformat}, and making sure the first
alpha-numeric character in each field (probably the 'R' in 'REF') is
formatted to match the underlying paragraph.

Programmatically, you could do this by inserting an empty field, then
inserting "REF" & "BkMrk" & "\* Charformat", where 'BkMrk' is your
bookmark
name. Alternatively, insert a REF field with "BkMrk" & "\* Charformat".

Cheers

--
macropod
[MVP - Microsoft Word]


Beth said:
Hi there,

I have a number of bookmarks in a template which I reference in several
different areas of the document (ie, they're initially on the
coversheet - at
a large font - then I've referenced them in the headers and other areas
of
the document). When I run the template the format of the "referenced
bookmarks" changes to the size of the original bookmark. The confusing part
is some of them are fine (ie, they don't change and stay to the format I've
set them at) but others do change.

Is there something I'm doing incorrectly, a setting I'm missing, or
extra
code I need to put in?

Using VBA in Word 2002 - I insert the bookmark [bookmark] then go to
the
other areas I need the text and select: Insert, Reference, Cross-reference,
Bookmark, Bookmark Text.

Thanks kindly for any advice
Beth
 
B

Beth

Love Love Love You Both

Thanks so much for your help
(ok doesn't take much to excite me)
 

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