In my macro, I am creating textboxes and spinbuttons in the code, and have created a class to allow me to
deal with events. I have the following declarations inside my class:
Public WithEvents SpinButton1 As MSForms.SpinButton
Public WithEvents IntegerTextBox As MSForms.TextBox
For some reason, VBA won't let me write a
Private Sub IntegerTextBox_Exit() function inside the class, which is what I need for the error correcting code that I want to implement. Does anyone know why I can't use the Exit function inside the class?
Does anyone have a good work around?
Thanks for your help,
deal with events. I have the following declarations inside my class:
Public WithEvents SpinButton1 As MSForms.SpinButton
Public WithEvents IntegerTextBox As MSForms.TextBox
For some reason, VBA won't let me write a
Private Sub IntegerTextBox_Exit() function inside the class, which is what I need for the error correcting code that I want to implement. Does anyone know why I can't use the Exit function inside the class?
Does anyone have a good work around?
Thanks for your help,