Restore Macro Action

You can use the Restore action to restore a maximized or minimized window to its previous size.

Note: This action can't be applied to code windows in the Visual Basic Editor. For information about how to affect code windows, see the WindowState property topic.


The Restore action doesn't have any arguments.


This action works on the selected object. If an object has been minimized, you can first select it by using the SelectObject action and then restore it to its previous size by using the Restore action.

You can use the MoveSize action to move or size a window that you have restored.

The Restore action has the same effect as clicking the Restore button in the window's upper-right corner or clicking the Restore command on the window's Control menu.

To run the Restore action in a Visual Basic for Applications (VBA) module, use the Restore method of the DoCmd object.

Share Facebook Facebook Twitter Twitter Email Email

Was this information helpful?

Great! Any other feedback?

How can we improve it?

Thank you for your feedback!