Type mismatch on DeleteFolder

B

Brian

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)
 
B

Bruce M. Thompson

Set DelFolder = FileSysObj.DeleteFolder(DirPath)

Try changing the above line to:

FileSysObj.DeleteFolder DirPath
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top