Option Private Statement

Description

Used at module level to indicate that an entire module is Private.

Syntax

Option Private Module

Remarks

If used, the Option Private statement must appear in a module before any statements that declare variables or define constants.

The public parts (variables, objects, and user-defined types declared at module level) of modules declared Private using the Option Private statement are still available within the project containing the module, but they are not available to other applications or projects.

See Also

Option Base Statement, Option Compare Statement, Option Explicit Statement, Private Statement.

Example

This Option Private statement is used at the module-level to indicate that the entire module is private.


Option Private Module    ' Indicate that module is private.