Try so:
Regards,![]()
Sub Macro1() ExistFile = Dir(FileToSave) If ExistFile <> "" Then Kill FileToSave End If 'Then save file ThisWorkbook.SaveAs (FileToSave) End Sub
Antonio
Try so:
Regards,![]()
Sub Macro1() ExistFile = Dir(FileToSave) If ExistFile <> "" Then Kill FileToSave End If 'Then save file ThisWorkbook.SaveAs (FileToSave) End Sub
Antonio
Thanks Antonio, that's solved it perfectly!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks