Move Method

Applies To

AppointmentItem object, ContactItem object, JournalItem object, MailItem object, MeetingRequestItem object, NoteItem object, PostItem object, RemoteItem object, ReportItem object, TaskItem object, TaskRequestItem object.

Description

Moves an Outlook item to a new folder.

Syntax

expression.Move(DestFldr)

expression An expression that returns an object in the Applies To list.

DestFldr Required MAPIFolder. The destination folder.

Example

This example moves all mail messages sent by Mike Nash from the default Inbox folder to the Personal Mail folder.

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