Fix VBA Project Window Minimized or Hidden Off-Screen
Question details
The user is unable to view or access the VBA Project window because it remains minimized or appears hidden when launched.
- Product
- Microsoft Office 2019 (Excel and Word)
- Device & OS
- Windows
- Scenario
- Opening the Visual Basic editor using Alt+F11 or the Developer tab in a multi-monitor setup.
- Observed behavior
- The VBA Project window does not appear on the active screen, often getting stuck on a covered laptop display or disconnected secondary monitor.
Verify your physical display connections and ensure no laptop lids are closed while still functioning as extended displays in your Windows system settings.
Retrieve the VBA Window Using Keyboard Shortcuts
Use Windows window-management keyboard shortcuts to easily snap the hidden VBA window back to your active display.
When an application opens on a monitor that is turned off or covered, Windows still treats the window as active. You can use keyboard shortcuts to manually move it back to your primary screen.
Press Alt+F11 in Excel or Word to ensure the VBA Project window is the currently active (focused) application on your system.
Press Alt+Spacebar to open the hidden window's system menu, then press the 'M' key to select the Move command.
Press any of the Arrow keys on your keyboard once. This action locks the hidden VBA window to your mouse cursor.
Move your physical mouse around until the VBA window appears on your main screen, then left-click to drop it in place. Alternatively, you can press the Windows Key + Left/Right Arrow to snap it into view.
Adjust Windows Display Settings
Temporarily disable your extended displays to force all open windows, including the VBA editor, onto your primary monitor.
Switch to WPS Office for a Seamless Spreadsheet Experience
Tired of dealing with missing windows and display glitches? WPS Office provides a stable, lightweight, and highly compatible alternative to Microsoft Office, complete with robust tools for your spreadsheet and document needs in a clean, unified workspace.
- 1. Download the Installer: Visit the official WPS Office website and download the free installation package for Windows.
- 2. Install and Launch: Run the installer, follow the simple on-screen instructions, and launch WPS Office.
- 3. Open Your Spreadsheets: Drag and drop your existing Excel files directly into the WPS workspace to open them instantly with perfect formatting retention.

Frequently Asked Questions
Why does my VBA window disappear when I disconnect my second monitor?
Windows sometimes remembers the last screen coordinates of an application. If a monitor is physically disconnected but the system or graphic drivers still register it as an extended display, the window will open in that invisible off-screen area.
What is the standard way to open the VBA Project window?
You can open the VBA Project window by pressing Alt+F11 on your keyboard, or by navigating to the Developer tab on your Office ribbon and clicking on the 'Visual Basic' icon.
Does this off-screen issue affect other Office applications and dialog boxes?
Yes, this window positioning issue can happen with any software on Windows. Within Office, it frequently occurs with Word, PowerPoint, and popup dialog boxes like the 'Find and Replace' or 'Format Cells' windows.




