Hi, I have a user form with several combo boxes which read their data from an excel worksheet.
I added an if function for checking required field data entry, which shows a text message if you miss filling required data. the problem is if you forget to fill all required fields, and press the "OK" button of msg box, the combo items will not show up in the from anymore. (Actually just one of them will show its items!)
I can repeat the code of add.item after if clause, but for avoiding duplication, is there is any way for putting all of the combo add.items scripts in a specific module or sub procedure, so I just call them, when it needed, it will enable me to have shorter and more efficient code.
Can anyone help me in that regard? I know it is a basic thing.
Tnx by the way.
I added an if function for checking required field data entry, which shows a text message if you miss filling required data. the problem is if you forget to fill all required fields, and press the "OK" button of msg box, the combo items will not show up in the from anymore. (Actually just one of them will show its items!)
I can repeat the code of add.item after if clause, but for avoiding duplication, is there is any way for putting all of the combo add.items scripts in a specific module or sub procedure, so I just call them, when it needed, it will enable me to have shorter and more efficient code.
Can anyone help me in that regard? I know it is a basic thing.
Tnx by the way.
Last edited: