Hi!
I've corrected the problem by simply adding a simple error handling line "On Error Resume Next", and now it works fine.

Thank you for the suggestions! I'll keep remember those points.