Understanding the Structure of a Module

Modules are workbook sheets that contain code. Each module can contain a declarations section, followed by procedures. The declarations section at the top of the module can contain:

Except for Option statements, user-defined type definitions, and declarations, all code in Visual Basic must be contained within procedures; Visual Basic modules cannot contain free-floating (uncontained) commands.