• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 178
  • Last Modified:

Indexing words in numbered lists (with links) in Word 2007

Hi,

I have an extensive document with numbered lists inside numbered lists:
A.
 a.
  i.
   1.
   2.
  ii.
   1.
   2.
   3.
 b.
   i.
    1.
    2.
    3.
   ii.
    1.
    2.
B
 a.
  i.
   1.
   2.
  ii.
   1.
   2.
   3.
 b.
   i.
    1.
    2.
    3.
   ii.
    1.
    2.
C. (etc.)

I'd like to index some words, but refering to the position in numbered lists instead of page number.

For example, indexing ORANGE, I'd like the Index to show not all the page numbers in which ORANGE is found, but the specific position in the lists.
Instead of:
ORANGE..... 3, 6, 7, 13
I need:
ORANGE..... A-a-ii-3, B-a-i-2

I'd also like these specific positions to be links to the numbered lists. For instance, when clicking on B-a-i-2, I'd go to number 2 of "i" of "a" of "B".

And, if it's not to ask too much, I'd like these links to be preserved when saving this word document into a PDF file.

Is it possible?
How could it be done?

Thanks in advance,

 Eduardo
0
eloureiro
Asked:
eloureiro
  • 6
  • 4
  • 3
1 Solution
 
aikimarkCommented:
I don't know if it is possible, but I would potentially approach this with custom page numbers.  Of course that would require each item in your outline to be on its own page.
0
 
Paul SauvéCommented:
unless u used Heading styles (Heading 1, Heading 2, etc,) numbering, i don't think this is possible in the way you describe th problem
0
 
eloureiroAuthor Commented:
Hi, Paul. How could I apply Heading without losing the numbering? And, after, how could Index words associated with these Headings?

0
Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

 
aikimarkCommented:
I played with this last night and the standard index is only going to produce page numbers.  :-(

Do you want to  select your own index entries using {XE } tags?

Or are you looking for an index builder that will build a table of words and their use locations?
If so, that would require some non-trivial programming.  First, you would need to iterate your paragraphs, gathering the ListLevelNumber and ListString values
Option Explicit


Dim colLevelNum as New Collection
Dim colListString as New Collection
For lngPP =1 to ActiveDocument.Paragraphs.Count
  colLevelNum.Add activedocument.Paragraphs(lngPP).Range.ListFormat.ListLevelNumber
  colListString.Add activedocument.Paragraphs(lngPP).Range.ListFormat.ListString
Next

Open in new window


Then you would need to iterate the collections, creating a concatenated outline 'path' for each paragraph, since you need to know the parentage for the index.
0
 
Paul SauvéCommented:
aikimark is correct, it can't be done with ToC either...
0
 
eloureiroAuthor Commented:
Aikimark, I'm not a programmer so I couldn't even understand completely your answer. Sorry for that.

Since the solution seems so complicated, let me try another approach...

Is it possible to link the page numbers in the Index to the words in respective pages?
For example, in
ORANGE..... 3, 6, 7, 13
Is it possible to click on number 6 and go to the first occurrence of ORANGE in page 6?
That is not all the way I want it, but anyway...

I want my reader who is interested in a certain topic to easily locate the points in the document where that topic is present.
0
 
aikimarkCommented:
Are you going to insert your own index tags?
0
 
eloureiroAuthor Commented:
I have a long text. I thought to select some words from this text and mark an entry for all occurrences of each word.
0
 
aikimarkCommented:
mark it up and post it.  that will give us something to play with.
0
 
Paul SauvéCommented:
This can be accomplished with the Index feature of Word 2007: References tab -> Index function ->select a word or expression -> click on Mark Entry -> select Mark All button.

Once all the keywords have been marked, go to the end of the document: References tab -> Index function -> then select Insert Index

Here's an example: Index-2010PS.docx
0
 
eloureiroAuthor Commented:
Ok, take a look at a file... I've marked two words: "tapeba" and "anacé". And I've also created an index at the end.

(Tomorrow morning, I'm going to travel without internet access until late Sunday. Excuse me if my next comment is not so fast.) teste-PRESEN-A-IND-GENA-E-DE-POP.doc
0
 
eloureiroAuthor Commented:
That I've done, Paul, but I'd like position in numbered lists instead of page number, or at least linkable page numbers which could lead to the first occurrence of that word in that page.
0
 
eloureiroAuthor Commented:
It was solved not the way I liked. But it helped as a Plan B.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 6
  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now