V
Vario29
Guest
Bonjour,Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$F$3" Then
champ = Target
n = Range(champ).CurrentRegion.Rows.Count
For i = 2 To Range(champ).Rows.Count
temoin = False
For c = 2 To Range(champ).Columns.Count
If Range(champ).Cells(i, c) <> 0 Then temoin = True
Next c
Rows(i + Range(champ).Row - 1).Hidden = Not temoin
Next i
ActiveSheet.PrintPreview
Cells.EntireRow.Hidden = False
End If
End Sub
Pouvez-vous m'expliquer ce code afin de l'adapter à mon exemple,
Il permet d'imprimer certaines lignes ayant une information,
MErci