How to get combobox not to accept user input in Excel-Vba?

前端 未结 3 637
星月不相逢
星月不相逢 2020-12-16 12:14

Does anyone know what the properties are in the combobox that I can manipulate in order not to allow the user to key/type in any data?

3条回答
  •  生来不讨喜
    2020-12-16 12:52

    Set the the Style of the combobox to 2 - fmStyleDropDownList. This will disallow user input, and will also prevent (combobox).value changes via macro.

提交回复
热议问题