Hi Andrew,
I can't see how that would produce a TOC with entries like:
Code:
1. Some Heading................................................ 1-5
1.1 Some Sub-Heading........................................... 5-9
2. Another Heading........................................... 10-11
or, depending on what 'last page' reference the OP requires:
Code:
1. Some Heading................................................ 1-9
1.1 Some Sub-Heading........................................... 5-9
2. Another Heading........................................... 10-11
etc., let alone have those entries update to reflect edits to the document.