How to move and resize the application window


The MoveApp VBA macro shows how to programmatically move and resize the ArcMap or ArcCatalog application window. This tip uses the IWindowPosition 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.
[VBA]
Sub MoveApp()
    Dim pAppWin As IWindowPosition
    Set pAppWin = Application
    pAppWin.Move 10, 10, 500, 400
End Sub