Results 1 to 20 of 25

Thread: Delete older emails with same subject line

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,478
    Location
    Hi Skasu,
    Welcome to VBAX
    Did you notice this line?
    Regards
    MD
    [vba] 'Needs a reference to Microsoft Scripting Runtime[/vba]
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  2. #2
    VBAX Regular
    Joined
    Dec 2007
    Posts
    78
    Location
    Quote Originally Posted by mdmackillop
    Hi Skasu,
    Welcome to VBAX
    Did you notice this line?
    Regards
    MD
     'Needs a reference to Microsoft Scripting Runtime
    I have tried to search Outlooks own help and I'll go on Google after I've posted this, but...obvious Noobie here...what is "Microsoft Scripting Runtime", how do you create a reference to it and what is the effect?
    Last edited by Aussiebear; 04-04-2023 at 01:13 AM. Reason: Adjusted the code tags

    I think in hindsight the problem was in my coding.

  3. #3
    VBAX Regular
    Joined
    Dec 2007
    Posts
    78
    Location
    Quote Originally Posted by Asterix
    I have tried to search Outlooks own help and I'll go on Google after I've posted this, but...obvious Noobie here...what is "Microsoft Scripting Runtime", how do you create a reference to it and what is the effect?
    Own question answered, GIMF... http://msdn.microsoft.com/en-us/libr...ffice.10).aspx

    I think in hindsight the problem was in my coding.

  4. #4
    VBAX Regular
    Joined
    Dec 2007
    Posts
    78
    Location
    Code works fine but in my case I'm looking to remove older emails from a shared groupbox, displayed like this...

    - Mailbox - Thegaul, Asterix
    Archive
    Deleted Items
    Drafts
    Inbox
    Junk E-mail
    Outbox
    Sent Items
    Search Folders
    - Mailbox - Groupbox, Our
    Deleted Items
    Inbox
    Outbox
    Sent Items
    Search Folders

    It's the "- Mailbox - Groupbox, Our", "Inbox" that I want to remove the older emails from. Any idea how I can modify this code to do this?

    I think in hindsight the problem was in my coding.

Posting Permissions

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