L
LarryP
Why does the following code only list three of the six .xls files in my c:\
directory?
Public Sub ListOfFiles()
Dim x As Integer, strFName As String
Debug.Print Dir("c:\*.xls")
For x = 1 To 1000
strFName = Dir
If strFName = "" Then
Exit For
Else
Debug.Print Dir()
End If
Next x
End Sub
directory?
Public Sub ListOfFiles()
Dim x As Integer, strFName As String
Debug.Print Dir("c:\*.xls")
For x = 1 To 1000
strFName = Dir
If strFName = "" Then
Exit For
Else
Debug.Print Dir()
End If
Next x
End Sub