![]() |
|
#1
|
|||
|
|||
|
Hi All:
In an index, Word will only make page ranges instead of individual page numbers (24-28, instead of 24,25,26,27,28) if you use bookmarks. Very tedious, especially with the large index I am producing. I want to convert the generated index to text (Ctrl shift F9), then run a macro on it to transform, say, "24,25,26,27,28" to "24-28" in each entry. Of course, each entry will have different page numbers to convert. Has anyone made a macro to do this? I could give it a go, but it is at the limit of my VBA skills. It must involve iterating through the page numbers of each index entry, testing if page number n+1 is one different from page number n, then constructing a suitable string. Thank you for your time, Garry |
| Tags |
| index, page range |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Macro to generate an index with page numbers
|
lovexlyn | Word VBA | 5 | 11-23-2022 05:32 AM |
Macro to auto-save pdf using text on page + current date
|
hysterical.useless | Word VBA | 12 | 02-05-2018 02:17 PM |
Auto section break macro - want to have no header on first page of document
|
cspeid03 | Word | 1 | 05-17-2017 12:18 PM |
Index match two date ranges
|
toddkad | Excel | 9 | 11-03-2016 03:10 AM |
| Auto Index is not completing - not taking a second page | Clock | Word | 1 | 12-12-2014 08:15 PM |