1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| Private Sub Workbook_Open()
Rappel = False
Load ufRappelClient
For i = 2 To 65536 'Boucle de recherche et ajout des noms dans la liste
With Worksheets("Chantiers en cours")
If .Cells(i, 1) <> "" And .Cells(i, 25) < .Cells(1, 35) Then
.Range(.Cells(i, 1), .Cells(i, 33)).Font.Bold = True
.Range(.Cells(i, 1), .Cells(i, 33)).Font.Size = 12
.Range(.Cells(i, 1), .Cells(i, 33)).Interior.ColorIndex = 3
ufRappelClient.lbClient.AddItem Cells(i, 1).Text
ElseIf .Cells(i, 1) = "" And .Cells(i + 1, 1) = "" Then
Exit For
End If
End With
Next i
ufRappelClient.Show 'Appel de la form qui affiche la liste des clients
End Sub |
Partager