Can you post a few sample documents so we can test the code on what you actually have. The code you are using looks like it makes assumptions on where bookmarks start and end and deals with how many of the bookmarks overlap. Your documents might not follow the same patterns that it is coded for.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
|