On my Excel spreadsheet, I have placed a ActiveX Check Box (using the Control Toolbar). I have attached to this control a VBA routine that fires on the Click event, that is, I created code for myCheckBox_Click.
When i Click the box, the code is executed as expected. However, there are two strange behaviors:
1 - The value stored in the checkbox is changed prior to my code being executed. Specifically, If I am clicking to uncheck the box, you would think to see that its value is true, however, it is false.
2 - (And I think this is a bug) When I programmatically change the value of the check box, the Click event code is executed. This makes no sense at all and makes code execute that I do not want to run.
Obviously, I need some help getting this squared away. Can you offer any suggestions or point me to good references to clear up this issue.
Thanks.
When i Click the box, the code is executed as expected. However, there are two strange behaviors:
1 - The value stored in the checkbox is changed prior to my code being executed. Specifically, If I am clicking to uncheck the box, you would think to see that its value is true, however, it is false.
2 - (And I think this is a bug) When I programmatically change the value of the check box, the Click event code is executed. This makes no sense at all and makes code execute that I do not want to run.
Obviously, I need some help getting this squared away. Can you offer any suggestions or point me to good references to clear up this issue.
Thanks.