如何让combobox不接受Excel-Vba中的用户输入? [英] How to get combobox not to accept user input in Excel-Vba?

查看:503
本文介绍了如何让combobox不接受Excel-Vba中的用户输入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道我可以操作的组合框中的属性,以便不允许用户键入/输入任何数据?

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?

推荐答案

将组合框的样式设置为 2 - fmStyleDropDownList 。这将不允许用户输入,并且还将通过宏来阻止(组合框).value更改。

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

这篇关于如何让combobox不接受Excel-Vba中的用户输入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆