Hi,
For test purposes I have a worksheet to which I dynamically add 3 buttons as a control array.
Clicking a Checkbox creates the buttons, clicking a second checkbox hooks up the events (just a "Mouse Down" message), clicking a third checkbox deletes the buttons.
All works fine (the status of the checkboxes is unimportant as they're only used to create the buttons etc for test purposes).
But (there's always a but...) I have a fourth checkbox which creates buttons AND hooks up the events - but the events don't hook up for some reason - even though exactly the same code is running in the same scope as is run in the first two checkboxes.
For the life of me I can't understand why one checkbox doesn't work! I'm using Excel 2010 but I don't think that it the cause at all... Any help appreciated.
Regards,
Brian
Code below:
Code in class module called cslActiveXEvents:
Worksheet (called "Debug") code:Please Login or Register to view this content.
Code in module called ButtonsModule:Please Login or Register to view this content.
Please Login or Register to view this content.
Bookmarks