SetFocus Method

Microsoft Word Visual Basic

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

expression    Required. An expression that returns a Window object.

Example

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

ActiveWindow.EnvelopeVisible = True
ActiveWindow.SetFocus