Dir, GetAttr, and SetAttr Constants

Last modified: December 06, 2011

Applies to: Office 2013 | VBA

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:
© 2015 Microsoft