Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-23-2017, 02:01 PM
frannie frannie is offline Cross-reference does not maintain formatting from bookmark Windows 7 64bit Cross-reference does not maintain formatting from bookmark Office 2010 64bit
Novice
Cross-reference does not maintain formatting from bookmark
 
Join Date: Mar 2017
Posts: 2
frannie is on a distinguished road
Default 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.
Reply With Quote
  #2  
Old 03-23-2017, 03:59 PM
macropod's Avatar
macropod macropod is offline Cross-reference does not maintain formatting from bookmark Windows 7 64bit Cross-reference does not maintain formatting from bookmark Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by frannie View Post
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.
That behaviour's most likely because someone has been overriding Style definitions with direct formatting.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 03-23-2017, 04:33 PM
frannie frannie is offline Cross-reference does not maintain formatting from bookmark Windows 7 64bit Cross-reference does not maintain formatting from bookmark Office 2010 64bit
Novice
Cross-reference does not maintain formatting from bookmark
 
Join Date: Mar 2017
Posts: 2
frannie is on a distinguished road
Default

You were right! I just opened up the styles pane options and cleaned it up and that worked. Thanks a bunch!
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross-reference does not maintain formatting from bookmark Weird issue with bookmark and cross-reference Maddog32 Word 2 06-10-2016 02:39 PM
Cross-reference does not maintain formatting from bookmark Locked Cross Reference Formatting Pete Jones Word 3 04-23-2016 09:14 PM
Cross-reference does not maintain formatting from bookmark Reference number and cross reference for equation numbers to match the thesis format wmac Word 1 05-14-2013 08:54 PM
Cross-reference does not maintain formatting from bookmark Need help with using bookmark and cross-reference mpdsal Word 1 07-26-2012 01:05 PM
Cross-reference does not maintain formatting from bookmark MS Word 2007: Cross-Reference Formatting Gone Haywire rphox2003 Word 7 03-13-2012 08:14 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:48 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft