Delete an e-mail using VBA rather than rule?

A

Adam S.

Is it possible to delete an e-mail using a VBA rather a than a rule?
What would be the shortest vba script to this and move to the next
e-mail?

TIA.
 
M

Michael Bauer [MVP - Outlook]

This deletes the first selected item, it throws an error if nothing's
selected:

Application.ActiveExplorer.Selection(1).Delete

You can't highlight an item by code.

--
Best regards
Michael Bauer - MVP Outlook

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


Am Thu, 29 Jan 2009 13:37:49 -0800 schrieb Adam S.:
 

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