PDA

View Full Version : Sleeper: rmdir driving me nuts...pleeeeease help



Tezzies
12-20-2007, 08:05 AM
I have a folder with a excel spreadsheet in it. I use vba to delete the spreadsheet then I delete the folder with vba. Works great.

BUT if i recreate the above scenario...and I copy a jpg to the folder then move it (using vba ) ......then delete the spreadsheet ,then try and delete the folder ,I get a path\file access error.

Why o why o why does copying then deleting a jpg to and from a folder make it undeletable through vba.


many thanks in advance

figment
12-20-2007, 08:25 AM
if you could post the code your using to move the pic and delete the folder, maybe we could spot the problem. but i can think of no reason that moving a picture around should remove your ability to delete the folder.