Window.ActivatePrevious method (Excel)

Activates the specified window and then activates the window at the back of the window z-order.

Syntax

expression.ActivatePrevious

expression A variable that represents a Window object.

Return value

Variant

Example

This example activates the window at the back of the z-order.

ActiveWindow.ActivatePrevious

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.