code to filter subject

Posted on 2006-03-22
Last Modified: 2011-09-20
I only would like to filter incoming emails with subject that starts with the string "Technology" and also if the total size of the email is no more than 30 kb. Can someone show code to accomplish that?

I started with somwthing like this.... please add thanks!

 For Each olItem In olInbox.Items
      If olItem.Class = olMail  and .....Then
Question by:zachvaldez
    1 Comment
    LVL 76

    Accepted Solution

    Greetings, zachvaldez.

     For Each olItem In olInbox.Items
          If (olItem.Class = olMail)  And (Mid(olItem.Subject,1,10) = "Technology") And (olItem.Size <= 30000) Then


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Suggested Solutions

    Use email signature images to promote corporate certifications and industry awards.
    Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
    This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now