Hi samy_mero;
I did not change that line from your code. Since I can't test it, I may not be able to tell you how to fix it.
You can try this:
Just before the line that crashes put this:
Then run the macro by clicking F8. This will step through the code one line at a time. When it gets to the line that crashes:
Click Ctrl+G to open the immediate window.
type "? s" (without the quote marks) and hit enter.
The name of the file that is about to be saved will be printed right below the "? s".
Check to see if that file already exists.
Then click F8 to step one more line and see if it crashes.
If it doesn't crash then keep clicking F8 until it comes back to the same line.
Again ? s in the immediate window and see if the file already exists.
If it crashes, record the Error # and Description. Maybe someone can figure out what it means.
Bookmarks