Move and Resize the Application Window

Last Modified:12/01/2000

The MoveApp VBA macro shows how to programmatically move and resize the ArcMap or ArcCatalog application window. This tip uses the IWindowPostion interface on the Application object.

Position and dimensions are relative to the upper-left corner of the screen.

How to use:
  1. Add this code to a module in the ArcMap or ArcCatalog Visual Basic Editor.
  2. Run the MoveApp macro. The application window should move.
Sub MoveApp()
  Dim pAppWin As IWindowPosition
  Set pAppWin = Application
  pAppWin.Move 10, 10, 500, 400
End Sub