View Single Post
 
Old 04-21-2023, 08:13 AM
ctviggen ctviggen is offline Windows 10 Office 2016
Advanced Beginner
 
Join Date: Feb 2021
Posts: 54
ctviggen is on a distinguished road
Default

Thank you, and sorry for my delay in responding. I'm now limited to working on macros only at lunch, so it is taking me a while to do anything.


How do I implement what you're suggesting? I tried this, but it's incorrect:


Code:
Selection.Find.Execute FindText:=([:;,]) ^ 13, ReplaceWith:="\1 ", Replace:=wdReplaceAll

What does the ^13 do?



Anyway, I was looking at this, and it's "worse" than I thought. I forgot that lines can also end with characters, e.g., a line could end with "d" from "and" or "r" from "or" or a number of other words. Ugh.


So, basically, after processing, a period followed by a paragraph return should NOT be changed, but every other line ending in a paragraph return SHOULD be modified by replacing the paragraph return with a space.



But your example could get me partway there.
Reply With Quote