Hi I want to delete an directory files using kill method in excel VBA for example :
Kill "D:\*.*"
but every time that a file on that directory is open it gives me this error and terminate the whole code :
runtime error 70 permission denied
is there any way to jump over that file (Ignore the error on that specific file) and continue to delete other files ?