vba 通过宏检查复选框是否被选中

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/21877088/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-12 02:00:28  来源:igfitidea点击:

Checking if checkbox is checked or not via macro

vba

提问by user1666075

I have check box in my xls sheet. How can i find if these are checked or not via macro. I have created these checkbox manually from Forrm Controller.

我的 xls 表中有复选框。我如何通过宏找到这些是否被检查。我已经从 Form Controller 手动创建了这些复选框。

Thanks, Mona

谢谢,莫娜

回答by Pedrumj

if CheckBox1.Value = true then
    'your code
end if