Paul Hobbs
Member
- Outlook version
- Outlook 2016 64 bit
- Email Account
- Office 365 Exchange
I am using some VBA (which I found on this site) to empty the Deleted Items folders for multiple accounts. Link to the source.
The code works perfectly, so no issues there. What I would like is to modify the code so that the prompt which asks me for confirmation is automatically accepted.
The specific code which does the emptying is:
Is there a way to force the dialog box to be accepted?
The code works perfectly, so no issues there. What I would like is to modify the code so that the prompt which asks me for confirmation is automatically accepted.
The specific code which does the emptying is:
If deletedItemsFolder.Items.Count > 0 Then
objExpl.CommandBars.ExecuteMso ("EmptyFolder")
End If
Is there a way to force the dialog box to be accepted?