Module Definition
Syntax
[ | Private | Public | Friend ] _ Module name ... End Module
Group
Description
A Module implements a code library.
- Has a set of Publicprocedures accessible from other macros and modules.
- These public symbols are accessed directly.
- May be initialized by a Private Sub Main.
Projects: A Module block can only be declared in a macro, Code module or a project's module.
Access
If no access is specified then Friend is assumed.
Option Explicit Module Utilities Function Double(ByVal X As Long) As Long Double = X*2 End Function End Module