+ Reply to Thread
Results 1 to 5 of 5

Code to deleted all emails from pre-defined senders

  1. #1
    Forum Contributor
    Join Date
    06-24-2006
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    127

    Code to deleted all emails from pre-defined senders

    Dear all

    Has someone got some code that when run will go through the inbox and delete all emails from certain senders?

    Many thanks in advance.

    Jim

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Code to deleted all emails from pre-defined senders

    HI Jim28,

    In Outlook 2010 simply create a rule based on a sender to delete the message.
    No code needed.
    See http://office.microsoft.com/en-us/ou...010355682.aspx
    Or http://www.outlook-tips.net/2011/154...unk-email-rule
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    06-24-2006
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    127

    Re: Code to deleted all emails from pre-defined senders

    I am talking about CURRENT mail in my inbox I have over 5000 messages!

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Code to deleted all emails from pre-defined senders

    OK Jim28 see if this helps. I'm running Outlook 2010.

    I see a message from Handango and I want to delete all of the CURRENT messages from them.
    I start by clicking on the message from Handango as it helps later...

    I click on an Icon called Rules and then "Always Move Messages from Handango"
    A window pops up called Rules and Alerts wanting me to show where to move messages from Handango to. I click on the "Deleted Items" folder
    I then look at my Deleted Items folder and find 113 messages from Handango in it. I would then right click on "Deleted Items" and empty that folder.
    Is this what you were looking for?

    You can "create a rule" also to do this and the last question is "Run this rule now on messages already in the current folder?" This would also solve your problem.

    A third way would be to sort your messages by the From field and simply select all of the ones from whom you don't want anymore and delete them as a group.

  5. #5
    Valued Forum Contributor
    Join Date
    07-21-2008
    Location
    London, UK
    Posts
    326

    Re: Code to deleted all emails from pre-defined senders

    Yeah dont code - set a rule to a DIR - job done, then you can havea look asrequired

    Sure if an idiot sender its painful = if you DIR then you quarenteen in a fashion and can delate as required

    If you getting millions watch your profile thou as them Ups / downs

    Keep on top of these things be fine

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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