Bonsoir à tous,
Ma macro est trop lente, pouvez-vous y remédier !
Merci à l'avance et bonne soirée !
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 Sub Supprimer_Zero() Dim i As Long, j As Long, derniere_ligne As Long Application.ScreenUpdating = False With Sheets(1) derniere_ligne = Range("A1" ).End(xlDown).Row 'Dernière ligne de la base de données For i = 1 To derniere_ligne For j = 1 To 40 If .Cells(i, j) = 0 And .Cells(i, j).Interior.ColorIndex = xlNone Then .Cells(i, j) = "" Next j Next i End With Application.ScreenUpdating = True End Sub
Partager