'1ère formule (voir post 2)
TextBox7 = [IF(OR(Tarification!E15="Remboursement ordinaire",Tarification!E15="Bim-vipo"),SUMPRODUCT(COUNTIF(Tarification!B23:B27,Tarifs!Col_Codes)*(Tarifs!Col_RemOrdi)*Tarification!E21),"")]
'2ème formule
Select Case Worksheets("Tarification").[E15]
Case "Tiers payant"
TextBox7 = [SUMPRODUCT(COUNTIF(Tarification!B23:B27,Tarifs!Col_Codes)*(Tarifs!Col_RemOrdi))*Tarification!E21-SUMPRODUCT(COUNTIF(Tarification!B23:B27,Tarifs!Col_Codes)*(Tarifs!Col_RemTP))*Tarification!E21]
Case "Tiers Payant Réduit"
TextBox7 = [SUMPRODUCT(COUNTIF(Tarification!B23:B27,Tarifs!Col_Codes)*(Tarifs!Col_RemOrdi))*Tarification!E21-SUMPRODUCT(COUNTIF(Tarification!B23:B27,Tarifs!Col_Codes)*(Tarifs!Col_RemBim))*Tarification!E21]
Case Else
TextBox7 = ""
End Select
'3ème formule
Select Case Worksheets("Tarification").[E15]
Case "Bim-vipo"
TextBox7 = [SUMPRODUCT(COUNTIF(Tarification!B23:B27,Tarifs!Col_Codes)*(Tarifs!Col_RemBim))*Tarification!E21]
Case "Remboursement ordinaire"
TextBox7 = [SUMPRODUCT(COUNTIF(Tarification!B23:B27,Tarifs!Col_Codes)*(Tarifs!Col_RemTP))*Tarification!E21]
Case Else
TextBox7 = ""
End Select