I am using this code to load files
But i have problem when there is a large number of files, ( it shows nothing )
is it posible to list only files where date modified is today`s date.
And show in List "Modified Date" too.
Sort by "Modified Date" -Descending
Thank You
Code used
But i have problem when there is a large number of files, ( it shows nothing )
is it posible to list only files where date modified is today`s date.
And show in List "Modified Date" too.
Sort by "Modified Date" -Descending
Thank You
Code used
Code:
Private Sub Form_Load()
Dim LoadFiles As String
Dim strFill As String
LoadFiles = dir$("c:\test\*.txt", vbbHidden Or vbSystem)
Do While LoadFiles > ""
strFill = strFill & LoadFiles & ";"
LoadFiles = dir$
Loop
lstFiles.RowSource = strFill
End Sub
Comment