![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
Hello everyone.
Firstly, thank you to Sue Mosher for her assistance on a recent question I posted and her solution did the trick. I now have another question! Is it possible to use some code to empty the deleted items folder as part of a macro? Many thanks. |
#2
|
|||
|
|||
![]()
Am Thu, 24 Aug 2006 04:56:02 -0700 schrieb Darren Hermes:
Dim Items as Outlook.Items Dim i as Long Set Items=Application.Session.GetDefaultFolder(olFolde rDeletedItems).Items For i=Items.Count To 1 Step-1 Items(i).Delete Next -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook -- www.VBOffice.net -- Hello everyone. Firstly, thank you to Sue Mosher for her assistance on a recent question I posted and her solution did the trick. I now have another question! Is it possible to use some code to empty the deleted items folder as part of a macro? Many thanks. |
#3
|
|||
|
|||
![]()
On Fri, 25 Aug 2006 07:15:31 +0200, "Michael Bauer [MVP - Outlook]"
wrote in microsoft.public.outlook.program_vba: Am Thu, 24 Aug 2006 04:56:02 -0700 schrieb Darren Hermes: Dim Items as Outlook.Items Dim i as Long Set Items=Application.Session.GetDefaultFolder(olFolde rDeletedItems).Items For i=Items.Count To 1 Step-1 Items(i).Delete Next While we're on this subject - I've been looking for a long time for a way to purge items from a folder's dumpster with VBA. Has anyone found a way, except by SendKeys, of doing that? Firstly, thank you to Sue Mosher for her assistance on a recent question I posted and her solution did the trick. I now have another question! Is it possible to use some code to empty the deleted items folder as part of a macro? -- Michael Bednarek http://mbednarek.com/ "POST NO BILLS" |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Remove from server when deleted from 'Deleted Items' - Archiving? | [email protected] | Outlook - General Queries | 1 | August 2nd 06 07:34 PM |
Reading mails from Sent items, Deleted items, Draft folder of outlook from VB6.0 | Viswanathan | Outlook - General Queries | 8 | May 26th 06 05:31 PM |
emptying the deleted items folder | billp | Outlook and VBA | 1 | March 20th 06 09:25 PM |
Deleted items not emptying | David H | Outlook Express | 4 | February 11th 06 12:26 PM |
Recover deleted messages after emptying deleted items folder | Gail | Outlook Express | 2 | January 30th 06 06:18 PM |