Module Definition

Syntax

[ | Private | Public | Friend ] _
Module name
    ...
End Module

Group

Declaration

Description

A Module implements a code library.

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.

Related Topics


Option Explicit
Module Utilities
    Function Double(ByVal X As Long) As Long
        Double = X*2
    End Function
End Module