Dir, GetAttr, and SetAttr Constants

Dir, GetAttr, and SetAttr Constants

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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.

Show:
© 2016 Microsoft