Hi
I am having a bit of trouble with the below code. When I am killing the filename, there will always be two variations of the existing filename so I have added an error handler ie 'if the first file name doesn't exist, then try this one'.
This is a bit sloppy and I am getting an error 'Run-Time error '53': File not found' even if it has found the file and killed it. (The XXXXX is the filepath which I have redacted)
Is there a way to stop this happening? I would really appreciate your help.
many thanks in advance
Bookmarks