Sortierung nach Speicherdatum
26.02.2008 20:30:00
holger
mit folgendem Code rufe ichmir ineine UF Bilder auf und kann sie mir ansehen. Mein Problemist das die Bilder nicht nach Seicherdatum sortiert sind. Kan mir da jemand helfen wie ich sie der reihe nach angezeigt bekomme?
Private Sub CommandButton1_Click()
Dim name As String
Dim vname As String
Dim bewbildpfad As String
name = WUND.TextBox11.Value
vname = WUND.TextBox12.Value
bewbildpfad = ThisWorkbook.Sheets("Daten").Range("J4")
cntBild = cntBild + 1
With Application.FileSearch
.LookIn = bewbildpfad
.filename = name & ", " & vname & "*.jpg"
.Execute
If .FoundFiles.Count > cntBild Then
Me.Image1.Picture = LoadPicture(.FoundFiles(cntBild))
Me.Label1 = (.FoundFiles(cntBild))
End If
End With
End Sub
Bin für jede Hilfe Dankbar
Gruß Holger
Anzeige