Redigera

Dela via


SetFocus method (VBA Add-In Object Model)

Moves the focus to the specified Window.

Syntax

object.SetFocus

The object placeholder is an object expression that evaluates to an object in the Applies To list.

Remarks

Use the SetFocus method on windows that are already visible.

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.