bonjours le forum
j'ai besoin de votre aide j'ai se code qui marche bien mais quand ont l'exécute tout clignote
je voudrai que tout se face en "invisible"
j'ai besoin de votre aide j'ai se code qui marche bien mais quand ont l'exécute tout clignote
je voudrai que tout se face en "invisible"
Code:
Sub macro1()
Sheets("Feuil2").Select
Dim X As Range
Set X = Range(Cells(1, 1), Cells(65535, 1)).Find("", , xlValues, xlWhole, , , False) 'recherche premiere ligne vide
deb = 0
If Not X Is Nothing Then
deb = (X.Row) 'deb= num ligne vide
End If
Range("A1").Select
Range(Cells(1, 1), Cells(deb - 1, 50)).Select ' nombre de colonne
Application.CutCopyMode = False
Selection.Copy
Sheets("Feuil1").Select
Set X = Range(Cells(1, 1), Cells(65535, 1)).Find("", , xlValues, xlWhole, , , False)
i = X.Row
Range("A1").Select
ActiveCell.Offset(i - 1, 0).Select
ActiveSheet.Paste
Application.CutCopyMode = False
Cells.Select
Selection.Sort Key1:=Range("C1"), Order1:=xlAscending, Header:=xlGuess, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
Range("A1").Select
i = 0
Do Until ActiveCell.Offset(i, 0).Value = ""
i = i + 1
p = 0
For j = 1 To 26 'nombres de colonne traite
If ActiveCell.Offset(i, j).Value = ActiveCell.Offset(i - 1, j).Value Then
p = p + 1
End If
If p = 26 Then
Rows(i).Delete
i = i - 1
End If
Next j
Loop
End Sub