VBA code to permanently delete mail item - and attach to a shortcut? Ideas?

T

tkutter

I am familiar with VBA, but not for outlook 2002. I was looking to
get some ideas on how I could do the following:

Create a function that would take the currently selected mail item and
permanently delete it - Not just put it in the deleted items folder,
but delete it. My idea would be to look at an email, then hit a
shortcut key (say for example, ctrl-d) and BAM - the item would be
gone.

My reason for this is because everything in my deleted items folder
gets archived (I want to keep it around). But I get alot of mail that
I know I dont want to keep around, so I dont mind getting rid of it
permanently.

Im just not familiar enough with the semantics of vba outlook yet to
do it.

Ideas?
 
J

JasonA

Just press ctrl-del or shift-del. Also why do people insist that the deleted
folder is for archiving and not another folder(s).
 
D

Diane Poremsky [MVP]

like Jason said, use shift delete.. .and use a folder called Archive for
archiving - if moving the messages to it is too much work, put your energy
into writing vba to move the messages on one click. You'll find VBA help at
slipstick.com and outlookcode.com

--
Diane Poremsky [MVP - Outlook]
Author, Teach Yourself Outlook 2003 in 24 Hours
Coauthor, Visual Quick Start Guide - OneNote 2003


http://www.poremsky.com - http://www.cdolive.com
Expert Zone http://www.microsoft.com/windowsxp/expertzone

Search for answers: http://groups.google.com
Most recent posts to the Outlook newsgroups:
http://groups.google.com/groups?as_ugroup=microsoft.public.outlook.*&num=30
 

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