Hey Excel people
I have a problem.
I need to change the state of a checkbox, both from VBA code and from the sheet, but only have my code run when it's changed from the sheet.
My problem is that the click event is also triggered, when changing the state from VBA code.
I've tried using a MouseUp event, but I would like the user to be able to use a keyboard as well (and I can't change the state of the checkbox, because there is a Paste event in my code, that somehow stops the state from changing, weird, but not what I'm asking)
How would I go about solving my problem?
- Somehow detecting wether it was called from code?
- Making the mouseup event work?
Any help will be greatly appreciated.
I have a problem.
I need to change the state of a checkbox, both from VBA code and from the sheet, but only have my code run when it's changed from the sheet.
My problem is that the click event is also triggered, when changing the state from VBA code.
I've tried using a MouseUp event, but I would like the user to be able to use a keyboard as well (and I can't change the state of the checkbox, because there is a Paste event in my code, that somehow stops the state from changing, weird, but not what I'm asking)
How would I go about solving my problem?
- Somehow detecting wether it was called from code?
- Making the mouseup event work?
Any help will be greatly appreciated.