Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 06-06-2021, 04:15 PM
Guessed's Avatar
Guessed Guessed is offline Numbered list with cross reference strange results Windows 10 Numbered list with cross reference strange results Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,185
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

The way that xrefs work is they use a hidden bookmark. If you create a xref to a numbered item, Word puts in this hidden bookmark around the entire contents of the paragraph (but not the paragraph mark itself). If you happen to insert content at the start of a paragraph that has a bookmark start sitting in exactly the same location then you are inserting that content INSIDE the hidden bookmark. The cross ref is therefore now pointing at that inserted content + the original content.

This is important to know because when you moved #6, you effectively did this by positioning your cursor AT THE START of #2 para (inside the bookmark) and pasting in there. Therefore the NEW start of that hidden bookmark is now what was #6 but NOW is the new #2. There is now NO bookmark which starts at the beginning of the old #2.

When a xref to a paragraph number points at a bookmark that includes more than 1 paragraph, the number that shows is the paragraph number of the FIRST paragraph in the bookmark - hence the xref to #2 still points at #2 even though it SHOULD have been smart enough to adjust to point at #3 which is what it now is.

This can be hard to understand without seeing how bookmarks behave. There is an option setting in File>Options>Advanced>Show document content >Show bookmarks. If this is ticked, you can select the first word of a paragraph and add a bookmark. You should see grey brackets appear where the bookmark starts and ends. Now paste content at the location where that bookmark starts and see where the bookmark now starts. Try pasting the same content where the bookmark ends and see what happens there.

The hidden bookmarks Word puts in for xrefs won't show up with the option setting but they behave in exactly the same way.

For more detailed info with visuals, see Cross-referencing in Word – how cross-reference fields work and Word cross-references - troubleshooting
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia

Last edited by Guessed; 06-06-2021 at 04:49 PM. Reason: Added links for additional info
Reply With Quote
 

Tags
cross reference



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross-reference with full context a numbered list inside another multilevel list (list style) MatLcq Word 0 02-01-2021 06:00 AM
Numbered list with cross reference strange results Formula for Cross Referencing Numbered List hiwire03 Word 9 08-09-2020 12:01 PM
How to export/import a cross-reference list? Satyavan Word 1 08-30-2018 04:14 AM
Numbered list with cross reference strange results Cross-Reference List - Error when re-arranging List SamMc Word 9 04-09-2018 05:53 PM
Numbered list with cross reference strange results Cross reference content control list with autotext or other text markmichel64 Word VBA 5 01-30-2015 01:41 AM

Other Forums: Access Forums

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


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