Bewerken

Delen via


Dir, GetAttr, and SetAttr constants

The following constants can be used anywhere in your code in place of the actual values.

Constant Value Description
vbNormal 0 Normal (default for Dir and SetAttr)
vbReadOnly 1 Read-only
vbHidden 2 Hidden
vbSystem 4 System file
vbVolume 8 Volume label
vbDirectory 16 Directory or folder
vbArchive 32 File has changed since last backup
vbAlias 64 On the Macintosh, identifier is an alias

Only VbNormal, vbReadOnly, vbHidden, and vbAlias are available on the Macintosh.

See also

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.