Я создаю пользовательскую форму Excel.Я хочу проверить два значения текстового поля.
if combobox1.text= 1 to 2yr then textbox2.value =>1 and <=2
combobox11.text= 3 to 10yr then textbox2.value =>3 and <=10
combobox1.text= 11 to 15yr then textbox2.value =>11 and <=15
combobox1.text= 16 to 20yr then textbox2.value =>16 and <=20
end if
![Userform](https://i.stack.imgur.com/lizR0.png)