Can an index return the section heading instead of page #?

  • Thread starter laughing waters
  • Start date
L

laughing waters

I have a 200 page document which is a compilation of essays that are 1-3
pages in length. Each essay has a tile.

I am using a concordence file to index the document, which returns a page
number for my items. This is working fine.

But, I'd like the index to return the heading of the section the information
is found in, rather than a page number. Is this possible?
 
C

Christopher B via OfficeKB.com

I think there's a way to do this. The obvious one would be to write a macro
that finds each title, copies it, creates an index entry below it, and pastes
the title into it. But I just did a test. First I created a StyleRef field
referring to Heading 1. Then I made an index field (that is, XE) using a
dummy string. Then I deleted the dummy string and copied the StyleRef field
into the XE field and updated the index. The field-within-a-field worked: the
content of the Heading 1 showed in the index. So your macro could insert one
of these nested fields following each essay title. [Incidentally, does your
name mean you're in Minnesota?]
 
L

laughing waters

Christopher B,

Hello, thank you, very much! I can't tell you how much I appreciate this.
I know Excel, but not Word (engineer).

Hahaha! No, I'm not in Minnesota, but in another M state....Michigan, or
"Mitch-i-gen" as we fondly call it.

God bless, thank you for your effort on this.

Susan


Christopher B via OfficeKB.com said:
I think there's a way to do this. The obvious one would be to write a macro
that finds each title, copies it, creates an index entry below it, and pastes
the title into it. But I just did a test. First I created a StyleRef field
referring to Heading 1. Then I made an index field (that is, XE) using a
dummy string. Then I deleted the dummy string and copied the StyleRef field
into the XE field and updated the index. The field-within-a-field worked: the
content of the Heading 1 showed in the index. So your macro could insert one
of these nested fields following each essay title. [Incidentally, does your
name mean you're in Minnesota?]

laughing said:
I have a 200 page document which is a compilation of essays that are 1-3
pages in length. Each essay has a tile.

I am using a concordence file to index the document, which returns a page
number for my items. This is working fine.

But, I'd like the index to return the heading of the section the information
is found in, rather than a page number. Is this possible?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top