Outlook send and delete Macro/VBA

  • Thread starter Thread starter danny.jurmann
  • Start date Start date
D

danny.jurmann

Dear Ladies and Gentlemen,

I am trying to program on option for Outlook which will send a message
and then delete the message from the sent items folder. Useful for all
those emails that just say "thank you". We use an email server but I
assume this will not make a huge difference.

Any help much appreciated. I have just started with VBA in Excel, so
all very new.

Kind regards,

Danny
 
For lots of information about coding for Outlook see www.outlookcode.com.

The Outlook MailItem object has a Boolean property DeleteAfterSubmit. If
that is set to True then no copy of the sent item is placed in the Sent
Items folder. That would save having to locate the new item in Sent Items,
deleting it and then going to Deleted Items and deleting it in that folder.
You set the property before the item is sent out.

For programming questions like this you are best off posting in the
microsoft.public.outlook.program_vba group, more of us developers hang out
there.
 
Back
Top