Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-04-2016, 09:25 AM
wolf wolf is offline Building an index not referring to page numbers Windows 7 64bit Building an index not referring to page numbers Office 2007
Novice
Building an index not referring to page numbers
 
Join Date: Feb 2016
Posts: 1
wolf is on a distinguished road
Default Building an index not referring to page numbers

Hi all

I'm need to create an name index that refers to a specific heading and not to the page number. Our document is basically a collection of historical texts. In each text there are a few names that need to be indexed at the end.

So far I have used this field code:

{XE ”Name” \t “No. 001”} for each name. "No. 001" being the text number.

This works ok, but when a name occurs in two texts, the index doesn't sort properly.

E.g. the name occurs in text 2 and 3 the index will be:

"Name.....................No. 003, No. 002"



obviously I want this to be

"Name.....................No. 002, No. 003"

Any ideas on how to fix this?
Reply With Quote
  #2  
Old 02-04-2016, 07:45 PM
macropod's Avatar
macropod macropod is offline Building an index not referring to page numbers Windows 7 64bit Building an index not referring to page numbers Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

Here's a workaround:
1. Insert a field somewhere, coded as:
{SET HighNum #}
or
{ASK HighNum "Refernce Count"}
where # is the count of 'Name' references. The ASK field will prompt for an update when you select its range and press F9, or if you print the document. To update the SET field, you'd need to select it, press Shift-F9 to expose the field code, change the # then press Ctrl-F9 to update the document.
2. For the XE fields, use the following field coding:
{XE "Name" \t "No. {=HighNum-{SEQ RefNum} \# "000"}"}

Note: The field brace pairs (i.e. '{ }') for the above examples are all created in the document itself, via Ctrl-F9 (Cmd-F9 on a Mac); you can't simply type them or copy & paste them from this message. Nor is it practical to add them via any of the standard Word dialogues.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Building an index not referring to page numbers How can I list an index with page numbers of words unknown to the dictionary in a word document? Jay Jay Word 3 08-12-2015 05:53 AM
Sorting Index According to Page Numbers mohsen.amiri Word 14 06-25-2015 09:50 PM
section page numbers reverting to following on from previous section after generating index cloudtrapezer Word 1 06-25-2015 01:16 AM
Index - hyphenated page numbers godofpool Word 1 07-09-2012 11:25 AM
Building an index not referring to page numbers wrong page numbers in index ellie2063 Word 1 06-29-2011 05:54 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:07 PM.


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