Private Sub saveinws()
Dim aa
aa = CInt(txttotal) - CInt(txtabsent) - CInt(txtadjuster) - CInt(txtgalia) - CInt(txtquality) - CInt(txtother)
With Worksheets("productivity")
If cmbshift = "Nuit" Then
.Range("b1").End(xlDown).Offset(1, 0) = aa
.Range("b1").End(xlDown).Offset(1, 1) = txtabsent.Value
caseeffectif.Value = aa
ElseIf cmbshift = "Matin" Then
.Range("e1").End(xlDown).Offset(1, 0) = aa
.Range("e1").End(xlDown).Offset(1, 1) = txtabsent.Value
caseeffectif.Value = aa
ElseIf cmbshift = "Après midi" Then
.Range("h1").End(xlDown).Offset(1, 0) = aa
.Range("h1").End(xlDown).Offset(1, 1) = txtabsent.Value
caseeffectif.Value = aa
End If
End With
End Sub