Reflection Desktop VBA Guide
Key Concepts / Understanding VBA Project Components
In This Topic
    Understanding VBA Project Components
    In This Topic

    Types of Reflection VBA Projects

    Each Reflection session document can include several types of VBA projects. These projects are displayed in the VBA Editor Project Explorer window.


    If you are referencing session documents or using SharedMacros files to share macros, make sure the projects in those files have unique project names. Each project name in the VBA Project editor must be unique to avoid errors caused by naming conflicts. You can change project names by modifying the project properties in the VBA editor or by creating and saving these files in Reflection Desktop 16.2 or greater.

    Components of Reflection VBA Projects

    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 Using the 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.