View Single Post
 
Old 10-16-2023, 04:55 AM
vivka vivka is offline Windows 7 64bit Office 2016
Expert
 
Join Date: Jul 2023
Posts: 302
vivka is on a distinguished road
Default

Hi, guys! I don't think that absence of space before Chr(13) is the reason for the error (what kind of error?). Presence of space is just a condition. If it is not positive, the code goes on to the next paragraph. I've checked it on different paragraphs. And again, it's curious and challenging, but the code from post 27 works smoothly on the Test_Test file sent by RobiNew previously!

Note that the code removes only 1 space at one run. To remove all spaces, Do...Loop is needed.
Reply With Quote