Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2005

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
laughing waters - 07 Sep 2005 01:12 GMT
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?
Christopher B - 27 Sep 2005 22:50 GMT
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?]

>I have a 200 page document which is a compilation of essays that are 1-3
>pages in length.  Each essay has a tile.
[quoted text clipped - 4 lines]
>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?
laughing waters - 04 Oct 2005 18:33 GMT
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

> 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
[quoted text clipped - 14 lines]
> >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?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.