Consulting

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

Thread: Delete older emails with same subject line

  1. #21
    VBAX Regular
    Joined
    Dec 2007
    Posts
    78
    Location
    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
    Malcolm,

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

    [vba]
    Dim olItem As MailItem
    should be
    Dim olItem As Object
    [/vba]

    as the inbox may contain meeting requests, voicemail etc

    Cheers

    Dave
    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,

    Gene

  3. #23
    VBAX Newbie
    Joined
    Mar 2013
    Location
    hefeifeicuilu
    Posts
    2
    I think that the Find method would be a superior way of doing this speedwise, I'll have a play

  4. #24
    VBAX Newbie
    Joined
    May 2014
    Posts
    1
    Location
    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
  •