JBARBE
XLDnaute Barbatruc
Bonsoir à tous,
Ma macro suivante est trop longue !
Pouvez-vous y remédier ?
Merci à l'avance et bonne nuit !
Ma macro suivante est trop longue !
Pouvez-vous y remédier ?
Merci à l'avance et bonne nuit !
Code:
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