Thread: [Solved] Cross reference formatting
View Single Post
 
Old 02-27-2024, 11:45 PM
RRB's Avatar
RRB RRB is offline Windows 11 Office 2021
Susan Flamingo
 
Join Date: May 2014
Location: The Holy City of Jerusalem
Posts: 302
RRB is on a distinguished road
Default Cross reference formatting

Hi Friends!

If I insert a CR to a bookmark and tell it to show the text of the BM, it shows the string with the formatting of the bookmarked text. Is there a way, maybe via VBA, that the CR should just be the format of the paragraph it is resting in? Also, is there a way to CR to a BM but change the display text of the CR altogether like to "Hi I am a CR" or whatever?

Thank you and have a good day!

Susan Flamingo

Update Edit:

Per Charle's Kenyon's website: Using Fields in Microsoft Word - a Tutorial in the Intermediate Users' Guide to Microsoft Word --

I should insert the CR as a REF field, and use the char format switch { REF myBookmark \* CharFormat }

the charformat switch applies the formatting that is applied to the word "REF".

But being that I am inserting the CR field via VBA, how do I format the letters "REF" via the code before I insert the field in actuality??

cross-posted
Redirecting

Last edited by RRB; 02-28-2024 at 06:27 AM. Reason: update to question
Reply With Quote