Compartilhar via


Window.SetFocus Method

Word Developer Reference

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.

Visual Basic for Applications
  ActiveWindow.EnvelopeVisible = True
ActiveWindow.SetFocus

See Also