Afficher un message
Vieux 15/02/2006, 19h44   #5 (permalink)
pierrejean
XLDnaute Barbatruc
 
Avatar de pierrejean
 
Date d'inscription: janvier 2006
Localisation: 69400 LIMAS
Version Excel : Excel 2000 (PC)
Messages: 6 100
Par défaut Re:a l'attention de Pierrejean

veux-tu essayer cela qui a le merite d'etre un peu plus concis

Sub test1()
fin = Range('F1').End(xlDown).Row
For n = fin To 1 Step -1
If Cells(n, 6).Interior.ColorIndex = 3 Then
Rows(n).Copy Destination:=Rows(fin + 1)
Rows(n).Delete
End If
Next n
End Sub
pierrejean est déconnecté   Réponse avec citation