A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Selectively permanently from deleted folder



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 21st 08, 06:01 PM posted to microsoft.public.outlook.program_vba
Nigel RS
external usenet poster
 
Posts: 16
Default Selectively permanently from deleted folder

Any help to create the code to run from Excel VBA that will selectively
delete emails from the 'deleted items' folder in Outlook.

I send emails from Excel via Outlook and set DeleteAfterSubmit = True which
moves the email to the deleted items folder. What I then want to do is
permanenly removes these deleted emails.

Each email created will have a specific text string in the subject that I
can use to decide which emails to delete.

Many thanks
Ads
  #2  
Old August 21st 08, 09:13 PM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Selectively permanently from deleted folder



Do you call by chance first Send, and then DeleteAfterSubmit? Actually, the
item shouldn't be stored, neither in SentItems nor in DeleteItems.

--
Best regards
Michael Bauer - MVP Outlook

: VBOffice Reporter for Data Analysis & Reporting
: Outlook Categories? Category Manager Is Your Tool
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Thu, 21 Aug 2008 09:01:02 -0700 schrieb Nigel RS:

Any help to create the code to run from Excel VBA that will selectively
delete emails from the 'deleted items' folder in Outlook.

I send emails from Excel via Outlook and set DeleteAfterSubmit = True

which
moves the email to the deleted items folder. What I then want to do is
permanenly removes these deleted emails.

Each email created will have a specific text string in the subject that I
can use to decide which emails to delete.

Many thanks

  #4  
Old August 22nd 08, 04:36 PM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Selectively permanently from deleted folder



No, the order is ok. I just wonder why it does't work for you because
DeleteAfterSubmit means the item won't be stored.

--
Best regards
Michael Bauer - MVP Outlook

: VBOffice Reporter for Data Analysis & Reporting
: Outlook Categories? Category Manager Is Your Tool
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Fri, 22 Aug 2008 06:16:06 +0100 schrieb Nigel:

I have it set as......

DeleteAfterSubmit
Send

I presume you are saying just use DeleteAfterSubmit ?

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recovering permanently deleted emails from Outlook 2000 Top Man Outlook - General Queries 3 August 29th 07 09:58 PM
Recovering permanently deleted emails from Outlook 2000 Tim Rogers Outlook - General Queries 0 August 29th 07 09:49 AM
How Can E-Mails Be Permanently Deleted?? Dale Franks Outlook Express 2 June 3rd 07 11:01 PM
Can I recover a permanently deleted email Martin C Outlook Express 8 March 9th 06 06:57 PM
Permanently delete junk without using the deleted folder. Jeni Outlook - Installation 1 February 28th 06 07:54 PM


All times are GMT +1. The time now is 08:36 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.