Results 1 to 2 of 2

Thread: [RESOLVED] subject in outlook

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2007
    Posts
    241

    Resolved [RESOLVED] subject in outlook

    email move to one folder to another folder with a specific subject
    suppose if the subject has 'Jounal moved on - jul 5/10
    each mail has vary after "-"
    if i split the subject before "-" the subject line email does not to the folder. so i need to take the full subject line in order to move.
    how do i take fullly in the subject line
    thiis the code i am using
    Code:
    objfolder2 =  "po Mails"
    ' split the word before '-'
    if olMail.Subject  = "Journal moved on" then ''Jounal moved on - jul 5/10'
    olMail. move objfolder2
    end if

  2. #2
    Addicted Member
    Join Date
    Jul 2009
    Posts
    208

    Re: subject in outlook

    Here's one way:
    Code:
    Dim subj As String
    subj = "Journal moved on"
    If Left(olMail.Subject, Len(subj)) = subj Then

Posting Permissions

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



Click Here to Expand Forum to Full Width