The one thing that the first code does, and the second doesn't (but it was not asked for but in testing I see it now):
the first code also gives the same result if the user makes selections in the endnotes texts. So if you select the superscript numbers in the endnotes themselves, the first code gives the numbers. The second code gives all endnotes numbers.
But this is a side effect, not sure if the user will ever do that.
Have a nice day !
Wim
|