![]() |
#1
|
|||
|
|||
![]()
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? |
#2
|
||||
|
||||
![]()
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] |
![]() |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
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 |
![]() |
ellie2063 | Word | 1 | 06-29-2011 05:54 PM |