Hello,
Im wondering if someone can help me. I want to setup a userform in a way that i need 2 conditions to fullfilled to show a value in a textbox.
In other terms, if my car model is A and its power is B, i need the price C to show up automatically in the price textbox. And i prefer to fill the prices manually without having to get to worksheets.
I tried this code but i dont get my price showing up.
I'll be thankful if u can help me
Im wondering if someone can help me. I want to setup a userform in a way that i need 2 conditions to fullfilled to show a value in a textbox.
In other terms, if my car model is A and its power is B, i need the price C to show up automatically in the price textbox. And i prefer to fill the prices manually without having to get to worksheets.
I tried this code but i dont get my price showing up.
VBA Code:
Private Sub Formulaire_activate()
If cboCar.Value = "Toyota" And cboPower.Value = "120 hp" Then
txtPrice.ShowValue = "10.000 $"
End If
End Sub
I'll be thankful if u can help me