Using the DIR() Function Does Not Produce Error

ID: Q133052


The information in this article applies to:


SYMPTOMS

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.


STATUS

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.


MORE INFORMATION

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.


REFERENCES

"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