SelectNamesDialog.SetDefaultDisplayMode method (Outlook)

Sets the default display mode for the Select Names dialog box, specifying its caption and button labels.

Syntax

expression. SetDefaultDisplayMode( _defaultMode_ )

expression A variable that represents a SelectNamesDialog object.

Parameters

Name Required/Optional Data type Description
defaultMode Required OlDefaultSelectNamesDisplayMode A constant in the OlDefaultSelectNamesDisplayMode enumeration that determines the default caption and button labels for the Select Names dialog box.

Remarks

SetDefaultDisplayMode is optional. If you don't call SetDefaultDisplayMode before calling Display, the default display mode will be OlDefaultSelectNamesDisplayMode.olDefaultMail. To set the display mode to a different value, you should call SetDefaultDisplayMode before calling the Display method.

This method allows you to display the Select Names dialog box without using a resource file to localize the values for the caption, the To label, Cc label, and Bcc label. You can override the built-in behavior by setting your own values for Caption, ToLabel, CcLabel, and BccLabel.

You can set additional properties (for example, setting NumberOfRecipientSelectors to olRecipientSelectors.olToCc) after calling SetDefaultDisplayMode. The Select Names dialog box will observe the subsequent setting.

See also

SelectNamesDialog 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.