ListBox rechercher ligne Non Colorées
Résolu/Fermé
lanxade
Messages postés
29
Date d'inscription
jeudi 30 avril 2009
Statut
Membre
Dernière intervention
8 avril 2023
-
28 juil. 2009 à 15:00
lanxade Messages postés 29 Date d'inscription jeudi 30 avril 2009 Statut Membre Dernière intervention 8 avril 2023 - 31 juil. 2009 à 14:24
lanxade Messages postés 29 Date d'inscription jeudi 30 avril 2009 Statut Membre Dernière intervention 8 avril 2023 - 31 juil. 2009 à 14:24
A voir également:
- ListBox rechercher ligne Non Colorées
- Rechercher ou entrer l'adresse - Guide
- Adresse IP locale : comment la trouver facilement - Guide
- Aller à la ligne excel - Guide
- Hors ligne instagram - Guide
- Vente en ligne particulier - Guide
1 réponse
gbinforme
Messages postés
14946
Date d'inscription
lundi 18 octobre 2004
Statut
Contributeur
Dernière intervention
24 juin 2020
4 684
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 !