Type mismatch on DeleteFolder

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am receiving type mismatch error 13 on execution of the DeleteFolder
method. It deletes the folder, but halts execution. I can use On Error Resume
Next, but I would really like to know how to avert the error 13.

This is the line causing the error (see my other post from today for the
full code).

Set DelFolder = FileSysObj.DeleteFolder(DirPath)
 
Set DelFolder = FileSysObj.DeleteFolder(DirPath)

Try changing the above line to:

FileSysObj.DeleteFolder DirPath
 
Back
Top