Using Python To Find And Replace Footnotes In Word
I am trying to use Python to hyperlink text in MS Word documents. I am currently using the win32com module, but I have become a little stuck on how to get the text from footnotes
Solution 1:
Use
footnotes = ActiveDocument.StoryRanges(wdFootnotesStory)
footnotes.Find.Execute(FindText="Microsoft Word", Forward=True)
while footnotes.Find.Found:
...do something, then:
footnotes.Find.Execute(FindText="Microsoft Word", Forward=True)
More details at https://msdn.microsoft.com/en-us/library/office/ff845743.aspx.
Post a Comment for "Using Python To Find And Replace Footnotes In Word"