SetFocus Method

Sets the focus of the specified document window to the body of an e-mail message. If the document isn't an e-mail message, this method has no effect.


expression Required. An expression that returns a Window object.


This example makes the header of an e-mail message visible and sets the focus to the body of the message.

ActiveWindow.EnvelopeVisible = True

Applies to | Window Object

See Also | EnvelopeVisible Property