Bonjour
J'ai un code VBA ou je ne comprends pas mon erreur, je souhaite supprimer des lignes en fonction de la valeur d'une cellule je vous laisse un bout de code:
'effacer les lignes dont la quantité d'heure=0 + les services ce code fonctionne
For m = 1 To Range("B10000").End(xlUp).Row
If Cells(m, 9).Value = "0" Then
Cells(m, 1).EntireRow.Delete
m = m - 1
End If
If Cells(m, 6).Value = "M" Then
Cells(m, 1).EntireRow.Delete
m = m - 1
End If
If Cells(m, 6).Value = "G" Then
Cells(m, 1).EntireRow.Delete
m = m - 1
End If
If Cells(m, 6).Value = "GA" Then
Cells(m, 1).EntireRow.Delete
m = m - 1
End If
If Cells(m, 6).Value = "GAR" Then
Cells(m, 1).EntireRow.Delete
m = m - 1
End If
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
If Cells(m, 13).Value <> "VALID" Then 'ce code bloque je ne comprend pas
Cells(m, 1).EntireRow.Delete
m = m - 1
End If
Next
'''''''''''''''''''''''''''''''''''''''''''''''''''''
Merci de votre aide
J'ai un code VBA ou je ne comprends pas mon erreur, je souhaite supprimer des lignes en fonction de la valeur d'une cellule je vous laisse un bout de code:
'effacer les lignes dont la quantité d'heure=0 + les services ce code fonctionne
For m = 1 To Range("B10000").End(xlUp).Row
If Cells(m, 9).Value = "0" Then
Cells(m, 1).EntireRow.Delete
m = m - 1
End If
If Cells(m, 6).Value = "M" Then
Cells(m, 1).EntireRow.Delete
m = m - 1
End If
If Cells(m, 6).Value = "G" Then
Cells(m, 1).EntireRow.Delete
m = m - 1
End If
If Cells(m, 6).Value = "GA" Then
Cells(m, 1).EntireRow.Delete
m = m - 1
End If
If Cells(m, 6).Value = "GAR" Then
Cells(m, 1).EntireRow.Delete
m = m - 1
End If
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
If Cells(m, 13).Value <> "VALID" Then 'ce code bloque je ne comprend pas
Cells(m, 1).EntireRow.Delete
m = m - 1
End If
Next
'''''''''''''''''''''''''''''''''''''''''''''''''''''
Merci de votre aide