Excel Active X Checkbox Uncheck by default

佐手、 提交于 2019-12-11 19:38:32

问题


I have this code for an active x check box

Private Sub CheckBox2_Click()
    Range("RowBlock2").EntireRow.Hidden = CheckBox2.Value
End Sub

the check boxes have a click sign in them. I don't know why

When I click on them they show the hidden rows.

is there any way to fix the code so the check boxes are not ticked in by default

thank you

I'm sure its something simple but Ive been searching for hours trying to fix this any help appreciated


回答1:


You can set the Value in the properties window, Right click the checkbox select properties, from the window set the value to true for checked, false for unchecked.



来源:https://stackoverflow.com/questions/18927090/excel-active-x-checkbox-uncheck-by-default

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!