9.0

108
Attribute definition
A file attribute is zero or more of the following values added together.
Attribute Value
vbNormal 0 Normal file.
vbReadOnly 1 Read-only file.
vbHidden 2 Hidden file.
vbSystem 4 System file.
vbVolume 8 Volume label.
vbDirectory 16 MS-DOS directory.
vbArchive 32 File has changes since last backup.
Attribute Definition/Statement
Syntax
Attribute attributename = value
Attribute varname.attributename = value
Attribute procname.attributename = value
Group
Declaration
Description
All attribute definitions and statements are ignored except for:
Form 1: Module level attribute
Attribute VB_Name = "name"
Attribute VB_GlobalNameSpace = bool
Attribute VB_Creatable = bool
Attribute VB_PredeclaredId = bool
Attribute VB_Exposed = bool
Attribute VB_HelpID = int
Attribute VB_Description = "text"
VB_Name - Declares the name of the class module
or object module.
VB_GlobalNameSpace - Declares the class module as a global class. (ignored)
VB_Creatable - Declares the module as creatable (True), non-creatable (False). (ignored)
VB_PredeclaredId - Declares the module as a predeclared identifier (True). (ignored)
VB_Exposed - Declares the module as public (True). (ignored)
VB_HelpID - Declares the module's help context displayed by the object browser.
VB_Description - Declares the module's help text displayed by the object browser.
Form 2: Macro/Module level variable attribute
Public varname As Type
Attribute varname.VB_VarUserMemId = 0
Attribute varname.VB_VarHelpID = int
Attribute varname.VB_VarDescription = "text"