Consulting

Results 1 to 2 of 2

Thread: Check for a specific word in emails.

  1. #1

    Check for a specific word in emails.

    Hi Guys,

    I never did vba in outlook before but how would you search for a specific word in emails that are coming into mailbox and then "if = the word" forward an email replying "insert something to forward back"

    not familiar with outlook functions..
    Last edited by lienlee; 07-13-2011 at 11:33 AM.

  2. #2
    VBAX Newbie
    Joined
    May 2011
    Posts
    4
    Location
    Im not sure on the forward email part but to check the email body i use
                    If InStr(Msg.Body, "UNIX") Then 
                            Set fldr = Outlook.Session.GetDefaultFolder(olFolderInbox).Folders("Today's Work").Folders("14.Unix")
                            Msg.Move fldr 
                    End If
    Body can be replaced with Subject and SenderName to filter other emails :-)

Posting Permissions

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