W
walt
Hi, I am using the following command to create a new excel file named
"Log.xls" (RetStr is defined above in the macro...)
Dim dummy As String
dummy = RetStr + "\Log.xls"
Set newBook = Workbooks.Add
With newBook
.Title = "ErrorLogs"
.SaveAs Filename:=dummy
End With
That works very good. But i need a routine that checks if the file already
exists. And if so, delete/overwrite that file before creating it (again).
Any hints?
TIA Walt
"Log.xls" (RetStr is defined above in the macro...)
Dim dummy As String
dummy = RetStr + "\Log.xls"
Set newBook = Workbooks.Add
With newBook
.Title = "ErrorLogs"
.SaveAs Filename:=dummy
End With
That works very good. But i need a routine that checks if the file already
exists. And if so, delete/overwrite that file before creating it (again).
Any hints?
TIA Walt