![]() |
#1
|
|||
|
|||
![]()
I am running Outlook 2013 in Office 2013 Pro in Windows 10. Everything is fully patched and up to date.
I have written a macro to empty my Trash folder when I quit Outlook. I also put an icon on my QAT to run the macro on demand. The macro runs in both cases, but it only deletes half of the items in the Trash Folder. If I run it a 2nd time on demand it deletes half the remaining items. The macro loops through the items in the folder using a For Each ... Next construct. What am I doing wrong? Below is just the For Each loop of the macro, not the entire macro. For Each myItem In myTrash myItem.Delete Next myItem Let me know if I need to post the entire macro. Any help will be appreciated! |
Tags |
2013, macro, trash |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Ulodesk | Word VBA | 5 | 04-02-2017 03:34 PM |
![]() |
kcvinu | Word | 6 | 03-29-2017 02:26 PM |
![]() |
eNGiNe | Word | 3 | 08-09-2016 11:13 PM |
Unexpected behavior of actual finish | patrickd123 | Project | 3 | 07-23-2014 01:53 PM |
Unexpected Server Response | GreenAccord | Project | 0 | 01-31-2006 12:52 PM |