Thread
:
delete a file in code
View Single Post
#
3
Posted to microsoft.public.excel.programming
Corey
external usenet poster
Posts: 276
delete a file in code
Try:
sub DeleteFile()
Application.DisplayAlerts =False
If Dir("C:\my documents\File Name to be Deleted.xls") < "" Then _
Kill "C:\my documents\File Name to be Deleted.xls"
Application.DisplayAlerts = True
end sub
Regards
Corey
Reply With Quote
Corey
View Public Profile
Find all posts by Corey