Using the DIR() Function Does Not Produce Error (133052)



The information in this article applies to:

  • Microsoft Excel for Windows 95 7.0a
  • Microsoft Excel for Windows NT 5.0

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
				

Modification Type:MinorLast Reviewed:8/19/2003
Keywords:KB133052