chaelie2015
XLDnaute Accro
Bonsoir forum
je souhaite simplifier ce code
Private Sub Worksheet_Change(ByVal Target As Range)
Rows("5:8").Hidden = 1: Rows("5:" & 5 + Int([L5])).Hidden = 0
Rows("9:12").Hidden = 1: Rows("9:" & 9 + Int([L9])).Hidden = 0
Rows("13:16").Hidden = 1: Rows("13:" & 13 + Int([L13])).Hidden = 0
Rows("17:20").Hidden = 1: Rows("17:" & 17 + Int([L17])).Hidden = 0
Rows("21:24").Hidden = 1: Rows("21:" & 21 + Int([L21])).Hidden = 0
End Sub
Merci
je souhaite simplifier ce code
Private Sub Worksheet_Change(ByVal Target As Range)
Rows("5:8").Hidden = 1: Rows("5:" & 5 + Int([L5])).Hidden = 0
Rows("9:12").Hidden = 1: Rows("9:" & 9 + Int([L9])).Hidden = 0
Rows("13:16").Hidden = 1: Rows("13:" & 13 + Int([L13])).Hidden = 0
Rows("17:20").Hidden = 1: Rows("17:" & 17 + Int([L17])).Hidden = 0
Rows("21:24").Hidden = 1: Rows("21:" & 21 + Int([L21])).Hidden = 0
End Sub
Merci