Window.SetFocus method (Word)
Sets the focus of the specified document window to the body of an email message.
Syntax
expression.SetFocus
expression Required. A variable that represents a Window object.
Remarks
If the document isn't an email message, this method has no effect.
Example
This example makes the header of an email message visible and sets the focus to the body of the message.
ActiveWindow.EnvelopeVisible = True
ActiveWindow.SetFocus
See also
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.