• Unusual Index (Word 2003)

    Author
    Topic
    #451289

    I have a document that has a table in the middle of it. That table lists region, company, phone (may have 2 or 3 phone numbers, and web address). I would like to create a sort of index, or end of document table of contents that would give me each company, main phone number, and web address, along with the page number it’s on. To make matters even more difficult, I’d like to track all pages where the company name appears throughout the document. Is there some sort of code I can use to track this information? I thought maybe a TOC, but I’d have to use character styles on the phone number and web address data and that wouldn’t work. I’m at my wit’s end here.

    Viewing 2 reply threads
    Author
    Replies
    • #1110612

      Hi Dea

      I think that this is a task for a macro which would:

      1. Interrogate the table (which I suspect is sorted on region), and collect all of the companies their prime phone numbers and web addresses.
      2. Build a four column table at the end of the document with these data and sort it on the company name.
      3. For each company listed in the new table cycle through the document searching for the company name; noting the page; and updating the table with this data.

      H.T.H.

    • #1110616

      I’m struggling to see why it isn’t an index (Reference > index) which you could create either by hand, or via a macro that looped through the table.

      I’m no index expert, but it seems to be more relevant than a TOC

    • #1110623

      I would question whether you need the same information in the document twice – why do you need two tables (one in middle and one at end) with company, phone, website? If this is really necessary then I would use a link to put the second occurrence in. To add to this second table links to everywhere that the company name appears is a massive amount of work for very little return so I would recommend that you use the built-in index function of Word instead to get links to the company names.

      Use the same source table to create a “concordance table” which will become a separate file which contains just the company names. You should be able to find out how these work (and the required format) in the online help and it should be easy since it sounds like you already have most of the work done. The concordance table can then be used to tag all occurrences of the company names so you can build an automatic index at the back of the document.

    Viewing 2 reply threads
    Reply To: Unusual Index (Word 2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: