Chasse
XLDnaute Occasionnel
Bonjour le forum 
J’aimerais stocker les lignes et les supprimer toutes en même temps à la fin de la boucle
Que doit-je ajouter à ses instructions et ou les mettres
	
	
	
	
	
		
D'avance merci à bientôt,et prenez soin de vous!
	
		
			
		
		
	
				
			J’aimerais stocker les lignes et les supprimer toutes en même temps à la fin de la boucle
Que doit-je ajouter à ses instructions et ou les mettres
		VB:
	
	
	Sub Archivage()
Set Arch = Sheets("Archive")
    For Each sh In Sheets
        Fin = sh.Range("B100000").End(xlUp).Row
        finB = sh.Range("F100000").End(xlUp).Row
        Rt = Arch.Range("A100000").End(xlUp).Row
        
        If sh.Name = "Rouge" Or sh.Name = "Blanc" Or sh.Name = "Rosé" Or sh.Name = "Champagne" Then
        sh.Select
            For g = 2 To Fin Step -1
            bt = sh.Cells(g, 2).End(xlDown).Row
                If Cells(g, 1) = 0 And Rows.Cells(g, 1).Row = Fin Then
                    Range(Cells(g, 2), Cells(finB, 6)).Copy
                    For i = 1 To Rt
                        If Arch.Cells(i, 1) = "Appellation" & " " & sh.Name Then
                            Arch.Cells(i, 1).Offset(1, 0).Insert Shift:=xlDown
                            Rows(g & ":" & finB).Select '.Delete
                        End If
                    Next
                  
                ElseIf Cells(g, 1) = 0 And Cells(g, 2) <> "" Then
                    Range(Cells(g, 2), Cells(bt, 6).Offset(-1, 0)).Copy
                    For i = 1 To Rt
                        If Arch.Cells(i, 1) = "Appellation" & " " & sh.Name Then
                            Arch.Cells(i, 1).Offset(1, 0).Insert Shift:=xlDown
                            Rows(g & ":" & bt - 1).Select '.Delete
                        End If
                    Next
                End If
            Next
        End If
    Next
 End Sub