ListBox rechercher ligne Non Colorées
Résolu/Fermé
lanxade
Messages postés
26
Date d'inscription
jeudi 30 avril 2009
Statut
Membre
Dernière intervention
10 mars 2022
-
28 juil. 2009 à 15:00
lanxade Messages postés 26 Date d'inscription jeudi 30 avril 2009 Statut Membre Dernière intervention 10 mars 2022 - 31 juil. 2009 à 14:24
lanxade Messages postés 26 Date d'inscription jeudi 30 avril 2009 Statut Membre Dernière intervention 10 mars 2022 - 31 juil. 2009 à 14:24
A voir également:
- ListBox rechercher ligne Non Colorées
- Rechercher ou entrer l'adresse - Guide
- En ligne sur instagram alors que non - Forum Instagram
- Apparaitre hors ligne whatsapp - Guide
- En ligne sur messenger alors que non ✓ - Forum Facebook Messenger
- Aller à la ligne excel - Guide
1 réponse
gbinforme
Messages postés
14939
Date d'inscription
lundi 18 octobre 2004
Statut
Contributeur
Dernière intervention
24 juin 2020
4 657
28 juil. 2009 à 22:38
28 juil. 2009 à 22:38
bonjour
Tu peux modifier ton code ainsi :
Les lignes qui ont un fond coloré ( Interior.ColorIndex ) en colonne A sont ignorées.
Tu peux modifier ton code ainsi :
Dim lig As Long, col As Integer
With Me.ListBox2
.ColumnCount = 7
.ColumnWidths = "30;80; 00 ;00 ; 80;40;40"
For lig = 15 To Range("G41").Row
If Cells(lig, 1).Interior.ColorIndex < 0 Then
.AddItem Cells(lig, 1)
For col = 2 To Range("G41").Column
.List(.ListCount - 1, col - 1) = Cells(lig, col)
Next col
End If
Next lig
End With
Les lignes qui ont un fond coloré ( Interior.ColorIndex ) en colonne A sont ignorées.
31 juil. 2009 à 14:24
Le code marche trés bien je peux ainsi continuer mon programme
Encore Merci !