Hello, I was wondering if anyone might have an answer or alternative method for a Table of Contents (TOC) question. I have a macro that creates a planning book for the user that contains a given number of chapters depending on the user's needs for a project. Each chapter has a bookmark-based TOC on the first page of the chapter and it works really well.
The question relates to the book's main TOC at the beginning. Each chapter is numbered, 1 through x, and each chapter's pages are numbered 1 through x. So, chapter 2 might have pages 1-5 and chapter 3 might have pages 1-3.
It would be slick if the book's main TOC could be built the same way with the chapter name serving as each line item in the TOC which I'm confident can be done. The problem is the numbering system. For example, if chapter 1 is 5 pages and chapter 2 is 3 pages, then the TOC would look like this:
Chapter 1 Title.....1
Chapter 2 Title.....6
I'd like it to look like this:
Chapter 1 Title.....1
Chapter 2 Title.....2
Right now, I'm using an array to build the TOC in table form after the book has been completed but it takes more time, which is not a huge deal, and also has a slight problem in looks because the ....... borders don't work perfectly.
Anyone have any ideas how to override that page numbering system in the bookmark-based TOC so that one can use the chapter numbers instead of the actual page numbers? Is there another alternative?
Thanks for any ideas you might have.