Using the DIR() Function Does Not Produce ErrorID: Q133052
|
In the versions of Microsoft Excel listed above, when you use the Dir() function in a Visual Basic for Applications module, if the directory does not exist or is incorrect, you do not receive a run-time error.
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
The Dir() Function returns the name of a file, directory, or folder that
matches a specified pattern or file attribute, or the volume label of a
drive.
"Microsoft Excel Visual Basic for Applications Reference" version 5, page
198
For more information about the Dir function, choose the Search button in
Programming With Visual Basic Help, and type:
dir
Additional query words: 1004 files
Keywords : xlnt
Version : 5.00 7.00 7.00a
Platform : WINDOWS
Issue type :
Last Reviewed: May 2, 1999