M
Mike Crofut
I've stolen code from elsewhere to make a simple routine to empty my default
deleted items folder. I have another deleted items folder in my PST tree
that I'd like to navigate to and also empty. Here is the code I have now:
Sub clearDeletefolder()
Dim Deleteditems As Object
Set Deleteditems =
Outlook.GetNamespace("Mapi").GetDefaultFolder(olFolderDeletedItems).Items
Do Until Deleteditems.Count = 0
Deleteditems.Item(Deleteditems.Count).Delete
Loop
Set Deleteditems = Nothing
End Sub
deleted items folder. I have another deleted items folder in my PST tree
that I'd like to navigate to and also empty. Here is the code I have now:
Sub clearDeletefolder()
Dim Deleteditems As Object
Set Deleteditems =
Outlook.GetNamespace("Mapi").GetDefaultFolder(olFolderDeletedItems).Items
Do Until Deleteditems.Count = 0
Deleteditems.Item(Deleteditems.Count).Delete
Loop
Set Deleteditems = Nothing
End Sub