Application.BeforeFolderSharingDialog event (Outlook)

Occurs before the Sharing dialog box is displayed for a selected Folder object.

Syntax

expression. BeforeFolderSharingDialog( _FolderToShare_ , _Cancel_ )

expression An expression that returns an Application object.

Parameters

Name Required/Optional Data type Description
FolderToShare Required Folder The Folder object to be shared.
Cancel Required Boolean (Not used in VBScript). False when the event occurs. If the event procedure sets this argument to True, the dialog box is not displayed.

Remarks

This event provides an add-in with the capability of replacing the sharing user interface supplied by Outlook with a custom user interface. This event does not occur if a sharing message is programmatically created and displayed.

See also

Application Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.