There seems to be no way to convince Excel to save the file unconditionally with the ->SaveAs method, overwriting what is potentially there
You could copy the spreadsheet to the new name before opening and modifying it.
In reply to Re^2: Error 317 saving spreadsheet
by ikegami
in thread Error 317 saving spreadsheet
by merrymonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |