Window.SetFocus Method (Word)

Sets the focus of the specified document window to the body of an e-mail message.

Syntax

expression .SetFocus

expression Required. A variable that represents a Window object.

Remarks

If the document isn't an e-mail message, this method has no effect.

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

See Also

Concepts

Window Object Members

Window Object