RestoreWindow Macro Action

You can use the RestoreWindow macro action in Access desktop databases to restore a maximized or minimized window to its previous size.

Note: Beginning in Access 2010, the Restore macro action was renamed to RestoreWindow.

Note: This macro 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 RestoreWindow macro action doesn't have any arguments.


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

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

The RestoreWindow macro 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 RestoreWindow action in a Visual Basic for Applications (VBA) module, use the Restore method of the DoCmd object.

Need more help?

Expand your Office skills
Explore training
Get new features first
Join Office Insiders

Was this information helpful?