Private Sub CommandButton1_Click()
Dim MaVal1 As Double, MaVal2 As Double, MonMax As Double, myVar As Double, Ici As Range
MaVal1 = CDbl(Me.TextBox3.Value) * CDbl(Me.TextBox4.Value) * CDbl(Me.TextBox5.Value) / 4000#
MaVa11 = Application.WorksheetFunction.Ceiling(MaVal1, 0.5)
Me.TextBox1 = MaVa11
MaVal2 = CDbl(Me.TextBox6.Value)
MaVa12 = Application.WorksheetFunction.Ceiling(MaVal2, 0.5)
Me.TextBox6 = MaVa12
MonMax = IIf(MaVal1 > MaVal2, MaVal1, MaVal2)
Set Ici = Sheets("Shippingprice").Range("A2:B2001")
On Error Resume Next
myVar = 0
myVar = Application.WorksheetFunction.VLookup(MonMax, Ici, 2, False)
On Error GoTo 0
If myVar <> 0 Then
Me.TextBox2 = myVar
Else
MsgBox "Aucune valeur trouvée!"
End If
End Sub