Need an automated way to convert plain text footnotes/endnotes to real Word footnotes/endnotes

I have several plain-text documents with footnotes/endnotes. The notes in the body are usually marked by a number in brackets ( ex: [1], [2], [3]), and the actual note has the same notation (ex: [1] See chapter 6 for more clarification).  What I'm looking for is a macro or VBA code to automate the process of making the notes true footnotes in Word. There are several hundred of them per document.

Very roughly the pseudocode would do the following

find and select the first note text

find and select the first note position

delete position ([1])

create footnote at current position

add selected text to footnote.text

loop till all notes complete

If it's easier, I could copy the notes themselves out to separate text file to aide in processing if it makes things easier. Any help or suggest or snippets that would get me on my way would be appreciated.

Thanks,

Jack

Answer
Answer
Greg Maxey
***
Death smiles at us all, but all a man can do is smile back.


For more help with Word visit:
http://gregmaxey.com/word_tips.html

1 person found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated December 11, 2023 Views 2,060 Applies to: