0

I use this statement in a Loop to delete a bunch of folders at a time. fso.deletefolder DeletePath, True

Prior to the above statement I do this to make sure it actually exist. If fso.FolderExists(DeletePath) = False Then

However, occassionaly get a Path Not Found error when it hits the delete statement. When I check the folder is there and I can delete it manually. Today my code sucessfully deleted 17 folders and failed on 2.

For my FolderExists logic I update the table I am reading with a Missing comment. I would like to do the same with the Delete. If "failed" then update the table with "Failed" and keep processing. Need help on this If statement.

Thanks.

face
  • 11
  • 1

0 Answers0