You must either have the folder path wrong, the files aren't there, or else the files are named differently than we discussed.
What are your two existing file names now?
You have to do it while the code is still in Break mode, with the yellow offending line of code highlighted..
I just tested my code again, it worked correctly. See the attached and pay close attention to the TestFunction sub and the comments.
Try changing
If Left(fsoFile.Name, 11) = "OutwardSort" And (Len(fsoFile.Name) = 22) Then
to
If Left(lcase(fsoFile.Name), 11) = "outwardsort" And (Len(fsoFile.Name) = 22) Then
and
If Left(fsoFile.Name, 8) = "OnusSort" And (Len(fsoFile.Name) = 19) Then
to
If Left(lcase(fsoFile.Name), 8) = "onussort" And (Len(fsoFile.Name) = 19) Then
@pisorsisaac@gmail.co - does your code allow for file path spaces? Maybe the OP's file path(s) has them.
Sorry, I didn't download or study the code; even then, I've not seen the problem path(s) either, but just trying to help.
Good thought, but when I tested mine it was with a folder with spaces in the name. Should work . I think the latest problem was with the case sensitive comparison
Yes I believe you're right. I didn't want to suggest he change it to option compare text, I figured the less "sweeping" solution would just be the lower case conversion that I recently posted. That way it doesn't mess up anything else they already have going.
I should have caught that issue earlier when I was posting my code at first but I guess I took the requirements bit too literally