How to Access the Visual Basic Editor in Excel Online
Question details
The user needs to access the Visual Basic Editor to use or create VBA macros, such as multi-select drop-down lists, while working in Excel Online.

- Product
- Excel Online
- Device & OS
- not provided
- Scenario
- Attempting to create, edit, or run VBA macro scripts within a web browser using Excel for the web.
- Observed behavior
- The Visual Basic Editor is missing and cannot be accessed because Excel Online does not support VBA macros.
Ensure you have the desktop version of Microsoft Excel installed on your Windows or macOS computer, as it is required to access the Visual Basic Editor.
Open the Workbook in the Excel Desktop Application
Since Excel Online does not support VBA, you must transition your session to the desktop version of Excel to view and edit macros.
Excel for the web lacks support for running or editing VBA macros. To create advanced automations or access the Visual Basic Editor, you need to open the file in the full desktop application, which fully supports VBA.
Open your workbook in Excel Online and look at the top ribbon menu where your primary tools are located.
Click on the 'Viewing' or 'Editing' button on the ribbon, then select 'Open in Desktop App' from the dropdown. Alternatively, click the dedicated 'Open in Desktop App' button if it is visible on the main ribbon.
Once the file opens in your desktop Excel application, press 'Alt + F11' on Windows or 'Option + F11' on Mac to open the Visual Basic Editor.

Use WPS Office to Run VBA Macros Seamlessly
WPS Office is a powerful, lightweight, and free alternative to Microsoft Office. The WPS Spreadsheet desktop application fully supports VBA macros, allowing you to create custom forms, multi-select drop-downs, and automated workflows without paying for an expensive subscription.
- 1. Download and Install: Download WPS Office for free from the official website and install it on your computer.
- 2. Open your Spreadsheet: Launch WPS Spreadsheets and open your macro-enabled workbook.
- 3. Access the VBA Editor: Go to the 'Tools' tab and click on 'Macros', or simply press Alt + F11 to launch the Visual Basic Editor.

Frequently Asked Questions
Can I run macros in Excel Online without editing them?
No, Excel Online cannot execute VBA macros. Even if a workbook contains macros, they will remain disabled and inactive when viewed or interacted with in the web browser.
Will I lose my macros if I edit an .xlsm file in Excel Online?
No, your macros are not deleted or lost. Excel Online preserves the VBA code in the background while you edit the sheet data, so the macros will still be there when you later open the file in the desktop app.
Are there any alternatives to VBA for automating tasks in Excel for the web?
Yes, Microsoft is promoting Office Scripts, which uses TypeScript, as the web-friendly alternative to VBA macros for automating tasks directly within Excel Online.
Why does the 'Open in Desktop App' button not work?
This usually happens if you do not have the Microsoft Office desktop suite installed on your machine, or if your browser's security settings are blocking the application from launching. Ensure Excel is installed locally and browser pop-ups are allowed.




