Skip to content

Latest commit

 

History

History
40 lines (18 loc) · 1.17 KB

c085f0cf-3d91-db84-aab9-18c7b46a04d2.md

File metadata and controls

40 lines (18 loc) · 1.17 KB

Folder.BeforeFolderMove Event (Outlook)

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

Syntax

expression . BeforeFolderMove( MoveTo , Cancel )

expression A variable that represents a Folder object.

Parameters

Name Required/Optional Data Type Description
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.

Remarks

This event fires when the folder is about to be moved to another folder (including the Deleted Items folder) or when the folder 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).

See also

Concepts

Folder Object

Other resources

Folder Object Members