Yes he did and it works perfectly well. The reason you can watch it working
is because Yves used the selection object vice the range object. Using
selection your screen is being refreshed with each selection change The
penalty, if you want to call it that, for using the selection object over
the range object is the speed the macro will run. In many cases the speed
advantage is mute but could become significant with larger numbers of
footnotes.
Yves reference to paragraph marks is vbCr. vbCr is one of the miscellaneous
contants that the VB editor can using in place of the equivelent Chr(13).
Open your VB Editor (Alt+F11), highlight the intance of vbCr in Yves' code
and press F1. You should see the help file open with a listing of the
miscellaneous constants.
The macro did end up in the normal.dotm template; is there a way to put a
macro only into a document and not into any template at all?
Yes. With the document open, open the VB Editor. If not displayed, display
the Project Explorer (Ctrl+r). Expand the tree for the document project and
paste the code into the ThisDocument class module. When I was working of
the first edition, I was working in the VB Editor ThisDocument class module
and ran the macro by pressing the run command on the VBE toolbar (looks like
a play button on a DVD player). I do that a lot. That is why I neglected to
change ThisDocument to ActiveDocument before posting.
You can also run code using the Developer Tab>Code>Macros. Select the
appropriate document from the "Macros in" drop down. Select the macro and
press Run.