Private Sub Worksheet_Change(ByVal Target As Range)
Dim lig As Long
If Target.Column < 5 Or Target.Column > 8 Then Exit Sub
If Target.Column < 7 Then
lig = Target.Row
Cells(lig, 7).Value = Cells(lig, 5).Value / 24
Cells(lig, 8).Value = Cells(lig, 6).Value / 24
End If
If Target.Column > 6 Then
lig = Target.Row
Cells(lig, 5).Value = Cells(lig, 7).Value * 24
Cells(lig, 6).Value = Cells(lig, 8).Value * 24
End If
End Sub