logo
search
VBA & Macro Problems

How to Display Excel and the VBA Editor Side by Side

Emma BrownEmma Brown Oct 10, 2026 869 views

Question details

Excel developers need to view both the active worksheet and the Visual Basic for Applications (VBA) Editor simultaneously to efficiently create, edit, and test macros without constantly switching tabs.

How to Display Excel and the VBA Editor Side by Side
Product
Microsoft Excel
Device & OS
Windows
Scenario
Writing and testing VBA macros where seeing the real-time cell changes on the spreadsheet is necessary.
Observed behavior
The user wants to split their screen between the Excel workbook and the VBA Editor window, and later restore them to a standard full-screen view.
Before you start

Ensure that both your Excel workbook and the Visual Basic for Applications (VBA) Editor (Alt + F11) are currently open on your desktop.

Solution 1Recommended

Use Windows Snap Keyboard Shortcuts

The fastest way to perfectly arrange both windows on one screen is by using Windows Snap keyboard shortcuts.

Windows provides a built-in Snap feature that allows you to instantly lock windows to the halves or corners of your screen. This method is ideal for establishing a dual-pane programming workflow.

1
Snap the Excel window

Click anywhere inside your main Excel window to make it active, then press the Windows key + Left Arrow on your keyboard. This will instantly snap the Excel window to occupy the left half of the screen.

2
Snap the VBA Editor

Click inside the VBA Editor window to make it active, then press the Windows key + Right Arrow. The editor will snap to cleanly fill the right half of your screen.

3
Restore to full screen

When you are finished testing your macro, select the window you want to expand and click its Maximize button (the square icon next to the close button in the top right corner) to return to a full-screen view.

Use Windows Snap Keyboard Shortcuts
Windows Snap Assist Feature: On Windows 10 and Windows 11, after snapping the first window, Snap Assist will usually display your other open windows as thumbnails. Simply click the VBA Editor thumbnail to automatically fill the remaining screen space without needing a second shortcut.
Advanced Macro Support

Write and Test Macros Seamlessly in WPS Office

WPS Spreadsheet features a powerful, integrated Macro editor that supports VBA. You can comfortably edit code and observe spreadsheet changes side by side, enjoying a lightweight application that drastically speeds up your workflow.

  1. 1. Open WPS Spreadsheet: Launch WPS Office and open your macro-enabled spreadsheet workspace.
  2. 2. Launch the Macro Editor: Navigate to the 'Tools' tab on the top ribbon, click on 'Macros', and select 'Visual Basic Editor' from the drop-down menu.
  3. 3. Arrange Side by Side: Use the Windows Key + Left/Right Arrow keyboard shortcuts to snap the WPS Spreadsheet and the Macro Editor side by side for efficient, real-time testing.
Fully compatible with Microsoft Excel macro formats (.xlsm)Built-in visual basic editor for seamless macro creation and executionLightweight software that runs quickly on any device without laggingFamiliar ribbon user interface with a zero learning curve
microsoft office alternative - wps office

Frequently Asked Questions

How do I quickly open the VBA Editor in Excel?

You can instantly open the VBA Editor by pressing Alt + F11 on your keyboard. Alternatively, go to the Developer tab on the ribbon and click the 'Visual Basic' button.

Can I move the VBA Editor to a second monitor?

Yes. If you have a multiple-monitor setup configured to 'Extend', you can simply click and drag the title bar of the VBA Editor window over to your second monitor screen, then click the Maximize button.

Why is Windows Snap not working on my computer?

Snap Assist might be disabled in your Windows system settings. To enable it, navigate to Windows Settings > System > Multitasking, and make sure the 'Snap windows' toggle is switched to the On position.