• Subject: Archive Mail Item directly after clicking the "Send" button
  • Author: Axel Gehrke
  • Date: 30 Dec 2009
  • References:
My "Sent Items" contains a lot of junk and some items to keep/store. After cleaning up, I'm working on a macro to ask me after clicking the send button if I want to DELETE the mail. If yes, the mail should be stored in a subfolder ("deleted") to the "Sent Items" (mySentDel).

MyMail.Send
MyMail.Move mySentDel

Looks like Outlook can't send it quick enough before the next line of the code moves the item. Error message:
"The operation cannot be performed because object has been deleted."

Any suggestions?


Submitted via EggHeadCafe - Software Developer Portal of Choice
Delegates to the Event, Part II - Events
http://www.eggheadcafe.com/tutorials/aspnet/c662bbc8-dc09-4c7e-91f0-a8f9d9bb9730/delegates-to-the-event-p.aspx
30 Dec 2009Archive Mail Item directly after clicking the "Send" button.Axel Gehrke
31 Dec 2009\ Re: Archive Mail Item directly after clicking the "Send" button.Dmitry Streblechenko
Contact Us
All times are in (US) Eastern Daylight Time (GMT -4:00)