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 - General Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook send and delete Macro/VBA



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 17th 06, 11:23 PM posted to microsoft.public.outlook
[email protected]
external usenet poster
 
Posts: 1
Default Outlook send and delete Macro/VBA

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

  #2  
Old July 18th 06, 02:34 PM posted to microsoft.public.outlook
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook send and delete Macro/VBA

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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


wrote in message
ps.com...
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


 




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
Storing a value for later use in vba or a Macro Jack G Outlook and VBA 1 June 8th 06 04:34 PM
vba macro to print email and attachments outlook 2000 Dan over in IT Outlook and VBA 2 June 7th 06 08:08 PM
Automatically trigger a VBA macro to run when connection to exchange server has been made. [email protected] Outlook and VBA 1 January 30th 06 10:29 PM
Automatically trigger a VBA macro to run when connection to exchange server has been made. [email protected] Outlook and VBA 0 January 25th 06 08:52 PM
Delete Custom Outlook Control thru Access VBA Sue Mosher [MVP-Outlook] Outlook - Using Forms 0 January 20th 06 05:29 PM


All times are GMT +1. The time now is 05:07 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.