#1
|
|||
|
|||
Cross-reference does not maintain formatting from bookmark
I have created a macro that basically pulls text from each cell in a table and turns it into a bookmark. I then cross-reference to those bookmarks later in the Word document. For some reason, the cross-references are not maintaining the formatting of the bookmarks (which is what I want it to do). I checked the bookmarks/cross-references and "preserve formatting" is not selected. Additionally, the field codes only say {REF XYZ}. In other words, I don't have\*MERGEFORMAT or Charformat on any of the cross-references. The weird thing is that it appears to only be affecting the Bold formatting. So if my bookmark text is bolded, the cross-reference shows up unbolded and vice versus. It is as if it is turning the bold switch on or off so that it is opposite of the bookmarked text. I can't seem to figure out why this is happening. Any suggestions? Also, my macro that creates the bookmarks does nothing to the text. It merely selects the text from a cell and creates a bookmark via ActiveDocument.Bookmark.Add etc. I am using Word 2010.
|
#2
|
||||
|
||||
That behaviour's most likely because someone has been overriding Style definitions with direct formatting.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
You were right! I just opened up the styles pane options and cleaned it up and that worked. Thanks a bunch!
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Weird issue with bookmark and cross-reference | Maddog32 | Word | 2 | 06-10-2016 02:39 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 |
Need help with using bookmark and cross-reference | mpdsal | Word | 1 | 07-26-2012 01:05 PM |
MS Word 2007: Cross-Reference Formatting Gone Haywire | rphox2003 | Word | 7 | 03-13-2012 08:14 AM |