1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| Private Sub Exec_Click()
Dim i As Variant
Dim TmpFile As String
Dim idFile As String
'initialisation de la variable
i = 0
If Me.List1 = "" Then
'Message indiquant qu'il n'y a aucun fichier dans la selection
MsgBox "Aucun(s) fichier(s) à traiter", vbExclamation, "Traitement"
Else
'Execution du traitement
For i = 0 To List1.ListCount - 1
idFile = List1.ListIndex
FileName = List1.List(idFile)
MsgBox "Fichier en cours de selection : " & FileName
Next
'Temporisation permettant au traitement de se terminer correctement
'Call Pause(3)
End If
End Sub |
Partager