Thread: [Solved] Unexpected Macro Behavior
View Single Post
 
Old 03-30-2018, 05:28 AM
RetiredCHE RetiredCHE is offline Windows 10 Office 2013
Advanced Beginner
 
Join Date: Jun 2016
Location: Alabaster, AL
Posts: 35
RetiredCHE is on a distinguished road
Default

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.
Reply With Quote