Bonjour le forum
le code ci-dessous me permet de masquer des lignes
Y a t-il un moyen pour le simplifier?
Sub Masquer()
Application.ScreenUpdating = False
For Each cell In Range("c3:c638")
If cell.Value = "4 M2 RM" Then cell.EntireRow.Hidden = True
If cell.Value = "3 Z3" Then cell.EntireRow.Hidden = True
If cell.Value = "2 Z2 L3" Then cell.EntireRow.Hidden = True
Next
Application.ScreenUpdating = True
End Sub
Cordialement
le code ci-dessous me permet de masquer des lignes
Y a t-il un moyen pour le simplifier?
Sub Masquer()
Application.ScreenUpdating = False
For Each cell In Range("c3:c638")
If cell.Value = "4 M2 RM" Then cell.EntireRow.Hidden = True
If cell.Value = "3 Z3" Then cell.EntireRow.Hidden = True
If cell.Value = "2 Z2 L3" Then cell.EntireRow.Hidden = True
Next
Application.ScreenUpdating = True
End Sub
Cordialement