Thanks, gmayor! I had to make a minor change to get it to work for me, but you put me on the right track with the reverse loop. Below is the loop with the change I had to make since variable myTrash was already defined as the collection of items in the folder.
For i = myTrash.Count To 1 Step -1
myTrash(i).Delete
Next I
Thanks again! This item is solved.
|