SetFocus Method (Outlook Controls)

Moves the focus to this instance of an object.

Syntax

expression. SetFocus

expression A variable that represents an Outlook control object.

Remarks

If setting the focus fails, the focus reverts to the previous object and an error is generated.

By default, setting the focus to a control does not activate the control's window or place it on top of other controls.

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.