#1
|
||||
|
||||
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 |
#2
|
|||
|
|||
The cross-reference is a REF field.
To look at what fields are there, press Alt+F9 which toggles display of field codes. You can see the field structure and code. (not completely for AutoTextList or HyperLink Fields, though)* When you insert a cross-reference you insert a Ref field. If it is to anything other than an existing Bookmark (i.e. Heading, Caption) a hidden bookmark is inserted at the location you are cross-referencing. You can get funky results if, after you insert a cross-reference, you go to the beginning of the referenced material and type. Say you want to insert something above what you cross-referenced. You go to the start and press Enter, move up and then start typing what you wanted to add. Say it is a heading. You reformat what you type to Normal or Body Text. Everything looks fine. When you update the cross reference (REF) field, it will now include what you added. Hyperlinks also create these bookmarks but are not quite as problematic because they do not update to show the content linked. However, they still will go to the start of the hidden bookmark. Answered by Stefan Blom in the answers forum. Quote:
Susan, I again ask you to please read A Message to Forum Cross-Posters. Take it to heart.
You have been asking a lot of questions in the forums. This is a good thing. See also:
==================================== I can say this here but am hesitant to be so blunt on the other answers forum. This is not a rant about you but about the other forum, where I am also a volunteer moderator.Off-topic rant/advice for Susan ====================================
- I will likely delete this violet text later.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cross-reference formatting issue | reytla | Word | 3 | 01-13-2022 01:32 AM |
Cross-reference does not maintain formatting from bookmark | frannie | Word | 2 | 03-23-2017 04:33 PM |
Locked Cross Reference Formatting | Pete Jones | Word | 3 | 04-23-2016 09:14 PM |
Reference number and cross reference for equation numbers to match the thesis format | wmac | Word | 1 | 05-14-2013 08:54 PM |
MS Word 2007: Cross-Reference Formatting Gone Haywire | rphox2003 | Word | 7 | 03-13-2012 08:14 AM |