Can you tell me exactly what the message box says when it reports it was unable to open a file?
When it reports that it is not related as to whether there are any blank sheets left or not, it just literally means for some reason it couldn't open the file.
In what way did you 'fix' the code? It sounds to me as if you just hid the error.
In the code as I pasted above, please change the line:
to be:
Then rerun the code, and post here exactly what appears in the Msgbox.
We need to find out why it was unable to open the files.
Bookmarks