Dir() Returns a string representing the name of a file or directory with specified pattern. : Dir « Forms « VBA / Excel / Access / Word






Dir() Returns a string representing the name of a file or directory with specified pattern.

 
Sub strDemo19()
   Debug.Print Dir("C:\Windows\*.ini")
End Sub

 








Related examples in the same category

1.Use Dir function to get the file directory
2.Get Directory by using the Dir function
3.Get the file names
4.Validate the file path