Results 1 to 4 of 4

Thread: Moving mail from one folder to the other(Outlook)

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2000
    Location
    Vienna, Austria
    Posts
    62

    Question

    Hello,
    Is there a way to move(not copy) a specific mail from one custom folder to another customfolder?
    Does someone know? Any input would be great!
    Life is trip, eat it and smile.

  2. #2

    Thread Starter
    Member
    Join Date
    Nov 2000
    Location
    Vienna, Austria
    Posts
    62

    Wink Gurus?

    Now, where are the proffesionals here? Can anybody help me out?
    Life is trip, eat it and smile.

  3. #3
    Lively Member Ishamel's Avatar
    Join Date
    Nov 1999
    Location
    Edinburgh, Scotland
    Posts
    112
    This code will move all of the mail items from the Inbox to the Personal Mail box where the Sender Name is 'Bob'

    Code:
    Set myInbox = myOlApp.GetDefaultFolder(olFolderInbox)
    Set myItems = myInbox.Items
    Set myDestFolder = myInbox.Folders("Personal Mail")
    Set myItem = myItems.Find("[SenderName] = 'Bob'")
        
    While TypeName(myItem) <> "Nothing"
        myItem.Move myDestFolder
        Set myItem = myItems.FindNext
    Wend

  4. #4

    Thread Starter
    Member
    Join Date
    Nov 2000
    Location
    Vienna, Austria
    Posts
    62

    Wink There are still Gurus out there :-)

    Thanks again Ishamel.
    Life is trip, eat it and smile.

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