VBA (Visual Basic for Applications) does not work in the new Outlook because the new version is a web-based application (based on Outlook on the web) rather than a native Win32 desktop application. To use your existing VBA macros, you must switch back to Classic Outlook or migrate your automation to Microsoft Power Automate.
What You'll Need
- A Windows PC with the Microsoft 365 or Office suite installed.
- Administrative permissions to toggle application settings.
- Access to your Microsoft account for Power Automate (if choosing the modern alternative).
Step-by-Step
Since the new Outlook does not support the VBA engine, the only way to "fix" the issue is to return to the version of the software that supports it. Labels and toggle locations may differ slightly depending on your specific build or region.
- Open the new Outlook application.
- Look for the New Outlook toggle switch in the top-right corner of the window.
- Click the toggle to turn it Off.
- A feedback window may appear asking why you are switching back. You can provide a reason or simply skip this step.
- Click Submit or Close.
- The application will close automatically and relaunch the Classic Outlook desktop client.
- Once Classic Outlook opens, press Alt + F11 to open the VBA Editor and verify that your macros are accessible.
If you wish to stop using Classic Outlook but still need automation, you must move your logic to Power Automate:
- Log in to your Microsoft 365 account via a web browser.
- Open the Power Automate app from the app launcher (the grid icon in the top-left).
- Select Create from the left-hand sidebar.
- Choose Automated cloud flow.
- Search for the Office 365 Outlook connector to set up triggers (e.g., "When a new email arrives") and actions (e.g., "Send an email" or "Create a file").
- Build your logic using the visual designer, as Power Automate does not use VBA code.
Common Mistakes
- Searching for a "VBA" menu in New Outlook: Users often spend time looking for the Developer tab in the new Outlook. This tab does not exist in the new version because the underlying architecture cannot execute VBA.
- Trying to import .bas files into New Outlook: You cannot import VBA modules into the new interface; they will simply be ignored or rejected.
- Assuming an update will add VBA: The new Outlook is a complete rebuild. It is not an update to the old one, but a different platform entirely.
Tips
- Keep a Backup: Before switching versions or migrating, export your VBA modules (.bas files) from Classic Outlook to a secure folder so you have a hard copy of your code.
- Hybrid Use: You can keep both versions installed on your machine. If you have a complex macro that must run daily, keep Classic Outlook as your primary mail client.
- Explore Add-ins: If you need custom functionality in the new Outlook, look into Office Add-ins (JavaScript/TypeScript), which are the official replacement for VBA in web-based Office apps.
Troubleshooting
If the "New Outlook" toggle is missing or does not work, try these steps in order:
- Restart the Application: Close Outlook completely via the Task Manager and relaunch it.
- Check for Updates: Ensure your Office suite is fully updated via the update settings in any other Office app (like Word).
- Registry Check: In some corporate environments, the toggle is disabled by IT policy. If the switch is greyed out, contact your system administrator.
- Manual Launch: Search your Start menu for "Outlook" and look for the icon that does not have the "New" label; this often launches the Classic version directly.
Frequently Asked Questions
Can I convert my VBA code to work in the new Outlook?
No, there is no automatic converter. VBA is a desktop-based language, while the new Outlook uses web technologies. You must manually recreate the logic using Power Automate or JavaScript Add-ins.
Will Microsoft eventually add VBA back to the new Outlook?
It is unlikely. The new Outlook is designed to be consistent across web, Mac, and Windows, and VBA is a legacy Windows-only technology.
Does the new Outlook support any form of scripting?
It supports Office Add-ins developed with JavaScript, TypeScript, and HTML, which are hosted on a web server rather than stored locally within the app.
Is Power Automate as powerful as VBA?
Power Automate is better for connecting different apps (like saving an email attachment to OneDrive) but is less powerful for manipulating the internal UI of the Outlook window itself.
Will my emails be deleted if I switch back to Classic Outlook?
No. Your emails are stored on the server (Exchange/Microsoft 365), not in the application interface. Switching versions does not affect your data.