Show Contents / Index / Search

Components of a Reflection VBA Project

Reflection 2011 creates a VBA project for each session or Web document that you open in the Visual Basic Editor. This VBA project appears in the Project Explorer window. Reflection 2011 creates an additional "legacy" Visual Basic project that provides support for any legacy macros it may contain.

Visual Basic projects are organized into the following folders:

Reflection Objects

The module that defines methods and properties for each Reflection object. Select an object in the Project Explorer to view its properties and options in the Properties window. For more information, see Reflection Object Model.


Custom dialog boxes that display information and get input from users.


Code modules that contain the programming procedures and declarations you have added to your project.

You can create new modules (Insert > Module) or add your own procedures to an existing module. Double-click a module from the Project Explorer to display the code in the Code window.

Note: This is the recommended location for creating macros.

Class Modules*

The programming feature for creating user-defined object classes, including methods and properties for these objects.


Specified projects from which you can run and make calls to macros. Any references you add to the project appear in this folder.

Note: By saving macros to the Common project, you can share macros between projects without having to use references.

*Present only if manually added to the project.