MarkRobinson
Programmer
' According to HELP (ya right!) this should list all the<br>' TXT files in the root directory.<br>Private Sub Update_Click()<br>Dim MArray(10) As String<br>mcounter = 1<br>'get first .TXT file in root <br>MArray(mcounter) = Dir("C:\*.txt"
<br>Do While mcounter < 10<br> Debug.Print MArray(mcounter)<br> mcounter = mcounter + 1<br> ' According to HELP, this should<br> ' get subsequent files.<br> ' All it does is keep getting<br> ' the second file<br> MArray(mcounter) = Dir("*.TXT"
<br>Loop<br>End Sub<br>