logo
search
VBA & Macro Problems

Fix VBA Project Window Minimized or Hidden Off-Screen

Maira MehtabMaira Mehtab Sep 22, 2026 869 views

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.
Before you start

Verify your physical display connections and ensure no laptop lids are closed while still functioning as extended displays in your Windows system settings.

Solution 1Recommended

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.

1
Activate the VBA Window

Press Alt+F11 in Excel or Word to ensure the VBA Project window is the currently active (focused) application on your system.

2
Open the Move Menu

Press Alt+Spacebar to open the hidden window's system menu, then press the 'M' key to select the Move command.

3
Lock to Mouse Cursor

Press any of the Arrow keys on your keyboard once. This action locks the hidden VBA window to your mouse cursor.

4
Reposition the Window

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.

Quick Snap Alternative: If the Alt+Spacebar trick feels cumbersome, simply pressing Alt+F11 and then repeatedly pressing Windows Key + Shift + Left Arrow (or Right Arrow) can instantly jump the active window across connected monitors.
Free Microsoft Office alternative

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. 1. Download the Installer: Visit the official WPS Office website and download the free installation package for Windows.
  2. 2. Install and Launch: Run the installer, follow the simple on-screen instructions, and launch WPS Office.
  3. 3. Open Your Spreadsheets: Drag and drop your existing Excel files directly into the WPS workspace to open them instantly with perfect formatting retention.
Fully compatible with Microsoft Excel (.xlsx, .xls) and Word (.docx) formats.Lightweight design that runs smoothly even on older PCs and complex multi-monitor setups.Clean, tabbed interface to keep all your documents and projects organized in one easy-to-manage window without off-screen glitches.
QA img-9

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.