![]() |
#8
|
|||
|
|||
![]()
Running the code on a series of nested folders, many Word files were deleted, but eventually there was a Run-time error 53 on:
Code:
Kill CStr(Split(StrFolds, vbCr)(i)) & "\" & strFile I have looked at the folder where it stopped, and I don't see anything unusual about the files there. I ran the program again, this time aiming it only at the problem directory, and it worked fine. I wish I could tell you the names of the files or directories, but unfortunately that's not possible. |
Tags |
delete document, loop folders |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
JingleBelle | Word VBA | 6 | 11-13-2020 07:36 AM |
Recent files not showing up unless they're in the default save directory | jderouen | Word | 0 | 05-12-2017 06:51 AM |
![]() |
PRA007 | Word VBA | 2 | 01-17-2016 09:04 PM |
Copy Files to a directory | elmnas | Word VBA | 8 | 07-11-2014 12:07 AM |
Weird problem - word docs are producing temp files that won't self delete | David92595 | Word | 0 | 07-07-2011 04:07 PM |