Nóta
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað aðskrá þig inn eða breyta skráasöfnum.
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað að breyta skráasöfnum.
True if the specified window is active. Read-only Boolean.
Syntax
expression.Active
expression Required. A variable that represents a Window object.
Example
This example activates the first window in the Windows collection, if the window isn't currently active.
Sub ActiveWin()
If Windows(1).Active = False Then Windows(1).Activate
End Sub
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.