Page 2 of 2 FirstFirst 1 2
Results 21 to 25 of 25

Thread: Solved: Delete older emails with same subject line

  1. #21
    Quote Originally Posted by mdmackillop
    Hi Asterix,
    Post your question in the Outlook forum for a quicker result
    Cheers m8e, but what am I missing? As, when I check, this thread *is* in the Outlook Help forum.

    I think in hindsight the problem was in my coding.

  2. #22
    Quote Originally Posted by brettdj

    Did it always move the older message? I'm not sure if the code needs a sort routine or not. Please note this change

    [color=#0000ff]Dim[/color] olItem [color=blue]As[/color] MailItem 
    should be 
    [color=#0000ff]Dim[/color] olItem [color=blue]As[/color] Object 
    Formatting tags added by mark007
    as the inbox may contain meeting requests, voicemail etc


    Hi Dave,

    I am new to macros so please bear with my lack of knowledge on the subject. The code is great and is exactly what I need for a makeshift inventory system I have set up for my small business utilizing QR codes and a smart phone to email the information. Sometimes the code works perfectly but sometimes the newer message is moved to the "old" folder. Any suggestions on how to fix this would be greatly appreciated.

    Thank you very much,


  3. #23
    I think that the Find method would be a superior way of doing this speedwise, I'll have a play

  4. #24
    an erro "olDict As Scripting.Dictionary“ user type not define

  5. #25
    user type not define
    add a reference to microsoft scripting runtime

Posting Permissions

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