When I pasted your code I found the following in a few instances.
I removed the extra line feet space and the macro worked OK
Hi Jeovany,
this issue is due to the new forum editor. Please have a look at this article:
https://answers.microsoft.com/en-us/msoffice/forum/all/vba-issues-with-new-forum-editor/5081b294-7ea7-4a86-870f-6b2834a0653b
And the bug with "columns" in Franks code looks like a symthom of a missing reference to me, I would request the file.
Andreas.