SetFocus Method (VBA Add-In Object Model)

Microsoft VBA

SetFocus Method

           

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.