Knowledge Base

Using the DIR() Function Does Not Produce Error

Article ID: 133052

Article Last Modified on 8/19/2003


APPLIES TO


This article was previously published under Q133052

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 XL

Keywords: KB133052