+ Reply to Thread
Results 1 to 2 of 2

Automatically delete sent messages that have a specific subject

  1. #1
    Registered User
    Join Date
    11-06-2013
    Location
    Phoenix, az
    MS-Off Ver
    Excel 2013
    Posts
    26

    Automatically delete sent messages that have a specific subject

    I was hoping someone here could help me out. I have Excel macros to email a hundred or so reports. My problem is the Sent Items folder in Outlook 2013 gets almost unmanageable if I don't go in and delete all the reports that were sent. I looked at options to create a rule but there are some drawbacks and I don't want to go that route. What I need is a simple macro that automatically runs when email is sent to check for specific text in the subject of the emails. Then delete only those emails from the sent items folder in Outlook. I assume that Outlook has something similar to Excel's ThisWorkbook where a macro can automatically run when an email is sent. If there is a method that can be added to the Excel code, that could work as well. But I don't know if the Excel code can monitor the Sent Items folder in Outlook.
    I do not want to turn off the option to retain sent emails in Outlook, I just want specific emails deleted when they occur. Maybe the option to retain sent emails can temporarily be turned off when the reports are sent then turned back on afterward ?

    I'd appreciate any help that can be given.

  2. #2
    Forum Contributor
    Join Date
    08-27-2006
    Posts
    136

    Re: Automatically delete sent messages that have a specific subject

    In Outlook, monitor the Sent Items folder with ItemAdd. Delete items with the applicable subject.

    ItemAdd described here http://www.outlookcode.com/article.aspx?id=62

    Refer to olFolderSentMail rather than olFolderInbox https://msdn.microsoft.com/en-us/lib.../ff861868.aspx
    To mark "Solved" go to Thread Tools.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Can I set a rule to delete mail with a specific subject and not received today?
    By mrkhchan in forum Outlook Programming / VBA / Macros
    Replies: 4
    Last Post: 03-19-2015, 12:43 PM
  2. Delete messages
    By tofimoon4 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-25-2014, 05:38 AM
  3. [SOLVED] macro to add text to subject in selected messages
    By boss1982 in forum Outlook Programming / VBA / Macros
    Replies: 2
    Last Post: 10-20-2013, 11:47 AM
  4. Macro for Exporting Outlook Messages to Excel - Split Subject problems
    By jbeans in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 03-04-2013, 08:29 PM
  5. Print attachment when it arrive in specific folder with specific subject
    By visha_1984 in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 01-28-2013, 02:57 AM
  6. Print attachment when it arrive in specific folder with specific subject
    By visha_1984 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-28-2013, 02:57 AM
  7. Subject: Delete All Worksheets Apart From Some With Particular Name
    By davehunter in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-30-2007, 08:22 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1