Selectively permanently from deleted folder

N

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
 
M

Michael Bauer [MVP - Outlook]

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:
 
N

Nigel

I have it set as......

DeleteAfterSubmit
Send

I presume you are saying just use DeleteAfterSubmit ?

--

Regards,
Nigel
(e-mail address removed)
 
M

Michael Bauer [MVP - Outlook]

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:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top