Andrew Lockton
I'm new to the forum and feel over my head. Are you saying that if ".Wrap = wdFindStop" is in the code I was using (which it IS) that using Selection instead of ActiveDocument will cause a problem? It doesn't seem to; i.e., it seems to work perfectly when I go back to using CleanUpPastedText as the name and Selection in place of ActiveDocument.
Your question starting with "If the first replace found..." doesn't make much sense to me, but probably because I really don't understand every line of Macropod's code from #5 above.
Last edited by Dr. Rick; 05-04-2023 at 08:25 AM.
Reason: clarity
|