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
- Add this code to a module in the ArcMap or ArcCatalog Visual Basic Editor.
- 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