Absolutely correct - Mac's works to give the last foot note added

I was (possibly) misunderstanding the OP's comment ...

that requires me to obtain pre-existing reference mark values of footnotes and endnotes.
... to mean that they were looking for the reference number for ANY footnote, not just the last one added.

Can the code be generalized to work with any pre-existing footnotes?

Paul