In Microsoft Excel, the GETATTR function returns an integer that represents the attributes of a file, folder, or directory.
Syntax
The syntax for the GETATTR function is:
GetAttr ( path )path is the path to a file, folder, or directory that you wish to retrieve the attributes for.
VBA Function Example
The GETATTR function can only be used in VBA code. Here are some examples of what the GETATTR function would return:
GetAttr("C:\Chithu.doc") would return 0
GetAttr("H:\Documents\Chithu.xls") would return 1
Syntax
The syntax for the GETATTR function is:
GetAttr ( path )path is the path to a file, folder, or directory that you wish to retrieve the attributes for.
VBA Function Example
The GETATTR function can only be used in VBA code. Here are some examples of what the GETATTR function would return:
GetAttr("C:\Chithu.doc") would return 0
GetAttr("H:\Documents\Chithu.xls") would return 1
No comments:
Post a Comment