TAGS :Viewed: 8 - Published at: a few seconds ago

[ How to Make Exception Handling on VBA Excel Form Combobox? ]

I have this userform that i'm developing for my report formatting task. My whole code is finished, there are only 2 problems that i need to work on.

  1. Making my VBA application work on every excel file that user choose
  2. Exception Handling for ComboBoxes on my form.

(Edit: I hope trying to get attention of people who are interested in this question to another stackoverflow.com topic is not against forum rules)

You guys can reach first problem's topic from here: (There is already one suggestion but i'm little bit confused. So it would be super for alternative suggestions) http://bit.ly/VnF3cK

And about my second problem, when i click empty place of combobox, i can type whatever i want, but i want to restrict it, so users can only choose values [1-5] that i put inside of combobox. How can I achieve this?

Answer 1

In answer to your secondary question, you need to change the ComboBox's Style property to frmStyleDropDownList