Private Sub Check_Click()
Dim cost, quantity, summ, made, total As Double
cost = Val(UserForm1.tCost.Text)
quantity = Val(UserForm1.tQuantity.Text)
made = Val(UserForm1.tMade.Text)
summ = cost * quantity
UserForm1.lSum.Caption = Str(summ)
total = made - summ
UserForm1.lTotal.Caption = Str(total)
End Sub