bs0d
Well-known Member
- Joined
- Dec 29, 2006
- Messages
- 622
I'm having the issue where the click event gets triggered for my activex checkboxes. If I change the OLEObject's behavior to _MouseUp, then that seems to fix the click event issue. But a new problem surfaces in setting the value of the checkbox. A simple: Sheets("SheetName").chkBoxName.value = TRUE or FALSE does not work.
Does anyone have feedback on resolving this? I can get the checkbox to set to TRUE by creating a custom function that sets the value outside of the _MouseUp subroutine, but it will not set the false value. (Code below):
call in mycheckbox_MouseUp:
Note: I did try application.enableEvents = False (before) , back to = False (after code) , but that' did work for me.
Thanks,
Does anyone have feedback on resolving this? I can get the checkbox to set to TRUE by creating a custom function that sets the value outside of the _MouseUp subroutine, but it will not set the false value. (Code below):
Code:
Sub checkbox_ClickSet (clickValue as Boolean, chkBoxName as OLEObject)
chkBoxName.Object.Value = clickValue
end sub
call in mycheckbox_MouseUp:
Code:
Module1.checkbox_ClickSet True, Sheets("SheetName").OLEObjects("mycheckbox")
Note: I did try application.enableEvents = False (before) , back to = False (after code) , but that' did work for me.
Thanks,