Hi,
I had this thread yesterday.
the code works fine för column 1 and 2 in listbox.
I also want to get the date last time the file changed in 3:d column in listbox.
I had this thread yesterday.
the code works fine för column 1 and 2 in listbox.
I also want to get the date last time the file changed in 3:d column in listbox.
VBA Code:
Private Sub CommandButton10_Click()
'
Dim MyFolder As String
Dim MyFile As String
Dim j As Integer
With Page6ListBox2
.ColumnCount = 3
.ColumnWidths = "50;100;50"
MyFolder = "R:\Education\School\Region"
MyFile = Dir(MyFolder & "\*.*")
Do While MyFile <> ""
With Page6ListBox2
.AddItem MyFile
.List(.ListCount - 1, 1) = MyFolder & "\" & MyFile
.List(.ListCount - 1, 2) = '????
End With
MyFile = Dir
Loop
End With
Last edited: