View Single Post
 
Old 08-30-2018, 02:58 PM
risomd risomd is offline Windows 7 64bit Office 2016
Novice
 
Join Date: Aug 2018
Posts: 6
risomd is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
So how would the macro be supposed to tell when a hyperlink shouldn't have the trailing space removed, or when a paragraph in a footnote shouldn't have trailing spaces removed? It seems to me you want it to do what you asked, except when you don't... And you did say you were:

and:
Exactly this. Iterating through paragraphs of the wdFootnotesStory will not indicate to which footnote they belong.


Iterating the footnotes and their paragraphs lets you determine which is the last paragraph of a footnote (see my initial post).

I will guess that the last hyperlink of the last paragraph of a footnote is the one to potentially trim *if* there isn't any non-hyperlink-text after it (once the last paragraph's characters have been trimmed).
Reply With Quote