How to Restore the Missing Modules Folder in Access VBA
Question details
The user is unable to find the Modules folder in the VBA Project Explorer window, although the underlying code still exists and functions properly.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Navigating the VBA Editor to view, organize, and edit standard macro code modules.
- Observed behavior
- The Modules folder has completely disappeared from the Project Explorer window, even though forms and other objects are still visible.
Ensure your database actually contains standard modules, as the Modules folder will automatically hide if the project only consists of class or form modules.
Enable the Toggle Folders Option in the VBA Editor
This is the most common fix when the folder view has been accidentally disabled in the Project Explorer, causing modules to display without their parent folders.
The Visual Basic Editor provides an option to either group objects by their type (like Forms, Modules, and Class Modules) or list them alphabetically without folders. If this setting is turned off, the Modules folder will disappear.
Press Alt+F11 on your keyboard or navigate to the Database Tools ribbon and click the Visual Basic icon to open the editor.
Right-click anywhere inside the blank space or on an existing object within the Project window (usually located on the left side of the screen).
Click on 'Toggle Folders' from the drop-down menu. Your standard modules should now be neatly grouped back into the Modules folder.

Verify the Existence of Standard Modules
Use this method to confirm whether the folder is missing simply because there are no standard modules present in your current database.
Looking for a Lightweight Office Suite with Robust VBA Support?
While Microsoft Access manages your complex databases, WPS Office provides a lightweight, seamless, and cost-effective alternative for all your daily spreadsheet, document, and presentation needs. WPS Office fully supports VBA macros, ensuring your automated tasks and scripts run smoothly without the heavy resource usage of standard Office suites.
- 1. Download and Install: Get the free WPS Office installer from the official website and complete the quick installation.
- 2. Open Your Office Files: Launch WPS Office and directly open your existing .docx, .xlsx, or .pptm files with no formatting loss.
- 3. Run Your Macros: Access the Developer tab in WPS Spreadsheets or Writer to edit, debug, and run your VBA scripts seamlessly.

Frequently Asked Questions
Why is my form code not showing up inside the Modules folder?
Code written for forms and reports is stored as Class Modules tied directly to those specific objects. They will appear under the 'Microsoft Access Class Objects' folder in the Project Explorer, rather than the standard Modules folder.
Will repairing Microsoft 365 fix missing folders in the VBA editor?
Usually, it will not. Missing folders in the Project Explorer are almost always related to view settings (like Toggle Folders being disabled) or a lack of standard modules in the database, rather than a corrupted Microsoft Office installation.
How do I open the Immediate window if my Project Explorer is acting up?
You can open the Immediate window at any time while in the VBA editor by pressing Ctrl+G on your keyboard. This allows you to debug code and execute commands instantly.
Can I hide specific modules from the Project Explorer?
You cannot hide individual standard modules from displaying in the Project Explorer. However, you can lock the entire VBA project from being viewed by going to Tools > VBAProject Properties > Protection and setting a password.




