SetAttr (String, fileattributes)
The attributes argument settings are:
Constant | Value | Description |
---|---|---|
Normal | 0 | Normal (default). |
ReadOnly | 1 | Read-only. |
Hidden | 2 | Hidden. |
System | 4 | System file. |
Archive | 32 | File has changed since last backup. |
Note These constants are specified by Visual Basic for Applications. The names can be used anywhere in your code in place of the actual values.
A run-time error occurs if you try to set the attributes of an open file.
FileAttr Function | GetAttr Function