Hello,
I was wondering if there was a way to set the default value of the combo box? Like I've populated my combo box with employee names taken from the worksheets, and it works all fine and stuff. But instead of the combo box showing a blank space on initialize, I would like it to take the name of one of the employees by default.
Is that possible?
Also, regarding the calender control, is it possible to have the calender always take the current date of the computer as the setted default date?
One last thing, I have this UserForm_Initialize() Sub which populates my combo box on initialization. Works perfectly. Now if there are no employees in the system, I want it to display a message and then the userform should close automatically since there are no employees. I tried using the Unload Me code, but I got the
I am assuming it has to the with the fact that I can't have an Unload Me code inside an initialization sub. Is there a way to work around this?Run-time error '91':
Object variable or With block variable not set
Bookmarks