Thank you. I'd been fiddling around with it on a test text, and noticed that indeed the notes have to contain text for it to work. (For my slightly odd purposes, I don't need actual text in the endnotes, but that's no problem. I can add dummy text and as soon as it's unliked it's easy enough to delete.)
In another version of Word it also balked at these lines:
.Style = "Endnote Text"
.Words.First.Style = "Endnote Reference"
Presumably this is because I have no "Endnote text" style defined in Word, or is that supposed to be a default style that's always there?
In any case, when I cut these two lines the macro did seem to work just fine. (For my purposes at least. I hope it is not doing something wrong that I haven't noticed yet. :-)
|