Folder.BeforeItemMove Event (Outlook)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Occurs when an item is about to be moved or deleted from a folder, either as a result of user action or through program code.

expression .BeforeItemMove(Item, MoveTo, Cancel)

expression A variable that represents a Folder object.

Parameters

Name

Required/Optional

Data Type

Description

Item

Required

Object

Represents the Outlook item that is to be moved or deleted.

MoveTo

Required

Folder

Represents the folder to which the item is being moved.

Cancel

Required

Boolean

Set this to True to cancel the move or delete action.

This event fires when the item is about to be moved to another folder (including the Deleted Items folder) or when the item is about to be permanently deleted. It does not fire during auto-archiving or synchronizing operations.

If the action is a permanent delete, the MoveTo folder returned in the event will be Null (Nothing in Visual Basic).

Concepts

Other resources

Show: