Private Sub CommandButton2_Click()
Col1 = 2 + Application.Match(ComboBox2, [ListeMois], 0) '2+ car liste commence en colonne 3
Col2 = 2 + Application.Match(ComboBox3, [ListeMois], 0) '2+ car liste commence en colonne 3
If Col1 > Col2 Then MsgBox "Le mois de fin doit être postérieur au mois de début": Exit Sub
With Sheets("COMPTES CUMULES")
Me.TextBox1 = Application.Sum(.Range(.Cells(5, Col1), .Cells(5, Col2)))
Me.TextBox2 = Application.Sum(.Range(.Cells(6, Col1), .Cells(6, Col2)))
Me.TextBox3 = Application.Sum(.Range(.Cells(7, Col1), .Cells(7, Col2)))
Me.TextBox9 = Application.Sum(.Range(.Cells(9, Col1), .Cells(9, Col2)))
Me.TextBox10 = Application.Sum(.Range(.Cells(10, Col1), .Cells(10, Col2)))
Me.TextBox8 = Application.Sum(.Range(.Cells(11, Col1), .Cells(11, Col2)))
Me.TextBox17 = .[O12]
Me.TextBox18 = .[O13]
Me.TextBox19 = .[O14]
End With
End Sub