Option Explicit
Sub Plus()
If ActiveSheet.Name = "Feuille de caisse du jour" Then [B2] = [B2] + 1
End Sub
Sub Moins()
If ActiveSheet.Name = "Feuille de caisse du jour" Then [B2] = [B2] - 1
End Sub
Sub CpyTR()
If ActiveSheet.Name <> "Feuille de caisse du jour" Then Exit Sub
Dim cel As Range, v1@, v2@, lig&: Application.ScreenUpdating = 0
With Worksheets("Récap TR")
Set cel = .Columns(1).Find([B2], , -4123, 1, 1)
If cel Is Nothing Then Exit Sub
lig = cel.Row 'n° ligne de la date de B2 qui a été trouvée en colonne A
With .Cells(lig, 2)
v1 = Val(Replace$([B7], ",", ".")): If v1 > 0 Then .Value = v1
v2 = Val(Replace$([C7], ",", ".")): If v2 > 0 Then .Offset(, 1) = v2
v1 = v1 + v2: .Offset(, 2) = v1
If lig = 2 Then .Offset(, 3) = v1: GoTo 1
.Offset(, 3) = .Offset(-1, 3) + v1
End With
1 [B7].Select: [B7:C7].ClearContents: .Select
End With
End Sub