Hi Mody
Voici une possibilité de code en se basant sur la ligne de départ et la ligne de fin des dates données
' Cod sumifs all range and between tow texstbox and all textbox
Private Sub CommandButton18_Click()
Dim FirstDate As Date, StartDate As Date, LastDate As Date
Dim FirstRow As Long, LastRow As Long, lRow As Long
Dim Col As Long, NbCol As Long
Dim Tot As Single
With ActiveSheet
FirstDate = .Range("A2")
NbCol = .Cells(1, Columns.Count).End(xlToLeft).Column - 2
'
StartDate = Me.Date_str: LastDate = Me.Date_End
'
FirstRow = 1 + StartDate - FirstDate + 1
LastRow = 1 + LastDate - FirstDate + 1
' Pour chaque colonne
For Col = 3 To NbCol
' Pour chaqse ligne
For lRow = FirstRow To LastRow
Tot = Tot + .Cells(lRow, Col).Value
Next lRow
Me.Controls("TextBox" & Col - 2).Value = Format(Tot, "#,##0.00")
Tot = 0 ' Réinitialize
Next Col
End With
End Sub
Attention !
Dans votre USF les contrôles pour les dates ne sont pas dans le bon ordre
Menu -> Affichage -> Ordre de tabulation
A+