View Single Post
 
Old 10-10-2023, 07:02 AM
yanyan9896 yanyan9896 is offline Windows 10 Office 2019
Novice
 
Join Date: Oct 2023
Posts: 13
yanyan9896 is on a distinguished road
Default

Quote:
Originally Posted by RobiNew View Post
Many thanks, yanyan9896! I now see that I was wrong in putting the question that way. The macro you posted does remove extra (= empty) carriage returns in footnotes, but what I need is code to remove all carriage returns except, of course, the ending one. Any idea?

Do you mean to remove all carriage returns in the footnote? Or do you mean remove all carriage returns in the whole document?


Do note you don't need a macro for this; it can be done with an ordinary Find/Replace, where:
Find = ^p^p
Replace = ^p


See https://www.msofficeforums.com/word-...e-returns.html
Reply With Quote