Bonjour,
Voulant détecter des lignes particulières à l'aide de la méthode .Find
en fonction de la couleur je tourne en rond.
Mon code marche pour une recherche de texte, mais pour la couleur pas moyen de trouver.
Merci d'avance de vos idées.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 Columns("D:D").Select With Range("D:D") ' je cherche cette couleur Application.FindFormat.Interior.ColorIndex = 46 Set objcell = Selection.Find(What:="", SearchFormat:=True) If Not objcell Is Nothing Then reponse = objcell.Row firstAddress = objcell.Address Set objcell = Selection.FindNext(After:=ActiveCell) While Not objcell Is Nothing And objcell.Address <> firstAddress reponse = objcell.Row Set objcell = Selection.FindNext(After:=ActiveCell) Wend End If
Bon week-end.
Partager