SetFocus Method (VBA Add-In Object Model)

Visual Basic Extensibility Reference

Visual Studio 6.0

SetFocus Method

See Also   Example   Applies To   Specifics

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.

Show:
© 2016 Microsoft