SetFocus method (VBA Add-In Object Model)
The object placeholder is an object expression that evaluates to an object in the Applies To list.
Use the SetFocus method on windows that are already visible.
- Collections (Visual Basic Add-In Model)
- Visual Basic Add-in Model reference
- Visual Basic language reference
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.