MickFlanagen
New Member
- Joined
- Jan 24, 2012
- Messages
- 27
I'm using the following macro:
The marco is working well, but it is very possible that the file has already been deleted. In such cases, I do not want the error to come up. Is there a way to tell excel "if this file exists, delete it. If not, just close"?
Thanks for the help
Mick
Code:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Kill "T:\usequty\Audit Reporting\T-Cross Reports\tcross.xls"
End Sub
Thanks for the help
Mick
Last edited: