Hi,
I have a form called userform1. I load this form using a sub. I use the command
UserForm1.show
now, on this Form there are a couple of checkboxes, I have to do some checks on the document, and depending on the resuls the checkboxes are supposed to get enabled or disabled. The code to enable/disable works if I create an extra button on the form and then call the sub that contains the checking stuff, but I want that to get executed automatically, so as soon as the form opens only the needed checkboxes are enabled.
I tryed to do the checking before I open the form, but that didnt work. I was thinking about using the form_load event, but that didnt really work either, or I just did it wrong.
any suggestions?
I have a form called userform1. I load this form using a sub. I use the command
UserForm1.show
now, on this Form there are a couple of checkboxes, I have to do some checks on the document, and depending on the resuls the checkboxes are supposed to get enabled or disabled. The code to enable/disable works if I create an extra button on the form and then call the sub that contains the checking stuff, but I want that to get executed automatically, so as soon as the form opens only the needed checkboxes are enabled.
I tryed to do the checking before I open the form, but that didnt work. I was thinking about using the form_load event, but that didnt really work either, or I just did it wrong.
any suggestions?