VBA & Macro Problems

How to Restore the Missing Modules Folder in Access VBA

Jason MillerJason Miller Nov 3, 2026 869 views

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.

How to Restore the Missing Modules Folder in Access VBA
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.
Before you start

Ensure your database actually contains standard modules, as the Modules folder will automatically hide if the project only consists of class or form modules.

Solution 1Recommended

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.

1
Open the VBA Editor

Press Alt+F11 on your keyboard or navigate to the Database Tools ribbon and click the Visual Basic icon to open the editor.

2
Access the Context Menu

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).

3
Select Toggle Folders

Click on 'Toggle Folders' from the drop-down menu. Your standard modules should now be neatly grouped back into the Modules folder.

Enable the Toggle Folders Option in the VBA Editor
Quick Tip: You can also toggle this view by clicking the 'Toggle Folders' icon directly located on the toolbar at the top of the Project Explorer window.
Free Microsoft Office alternative

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. 1. Download and Install: Get the free WPS Office installer from the official website and complete the quick installation.
  2. 2. Open Your Office Files: Launch WPS Office and directly open your existing .docx, .xlsx, or .pptm files with no formatting loss.
  3. 3. Run Your Macros: Access the Developer tab in WPS Spreadsheets or Writer to edit, debug, and run your VBA scripts seamlessly.
Fully compatible with Microsoft Excel, Word, and PowerPoint file formats.Advanced built-in VBA support for running and editing macros seamlessly.Free and lightweight, consuming significantly less system memory and storage.Familiar tabbed interface ensures a zero-learning-curve migration.
microsoft office alternative - wps office

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.