Thanks for all of the help, sorry I must have misunderstood your suggestion when I first read it. I will look into the code you provided when I get a chance.
One question: does your code account for the case where an EndNote automatically moves position when a section that contains the first instance is removed, and the second instance occurs after one or more new EndNotes? Example below:
Quote:
First bookmark text 1
Second Bookmark text to be deleted 2
Third bookmark text 3
Cross Reference to second bookmark 2. Cross reference to third bookmark 3.
Fourth bookmark text 4
____________
1 Endnote text 1
2 Endnote text 2
3 Endnote text 3
4 Endnote text 4
|
When deleting the second bookmark, should result in the following
Quote:
First bookmark text 1
Third bookmark text 2
Cross Reference to second bookmark 3. Cross reference to third bookmark 2.
Fourth bookmark text 4
____________
1 Endnote text 1
2 Endnote text 3
3 Endnote text 2
4 Endnote text 4
|
I haven't had a chance to really dissect your code just yet (and probably won't have time until tomorrow), but if I do understand what you are saying, and I put all endnotes at the end of the document and only use cross-references to those endNotes, I can't tell if this situation is handled.
Again, thanks for all of your help.