Suppose we are in the Visual Basic editor in Excel 2007. We create one module called modGlass :
Sub VolatileGlass() Dim Glass As shiny_surface End Sub
and then create a second module called modMetal :
Sub durableMetal() Dim metal As metal_compound End Sub

Subscribers in both modules contain an error: "User-defined type not defined."
When I compile a project using the Debug: Compile VBAProject menu command, the modGlass module modGlass always compiled first. If I:
- double click on
modMetal module and compile (is this?) or - rename
modMetal to amodMetal (so that the metal module is the first in the tree hierarchy of the project module)
The modGlass module modGlass compiled first.
Question: if I have a project with several modules in VBE, is there a way to indicate in which sequence the modules will be compiled?
I don't need this feature, but I'm just wondering if it has a quick way to do this. I am using Excel 2007.
source share