Hi All
I have a Userform which contains among other controls: 6 combo boxes, 4 multi select list boxes and 4 textboxes. They all have different names [not just listbox1 ,2 etc.].
The Userform is to enable data entry into an excel table. When i press the command button to add the data to the table I would like vba to run through all the above stated controls to check if any of them are empty, [in the case of the list boxes the it would need to check whether or not at least one selection has been made].
If any of the controls would actually be empty i would like a message box popup which lists which controls are empty and askes the user whether they still wish to proceed or not.
If anyone out there has the time to help me, or at least offer guidance It would be greatly appreciated.
I have a Userform which contains among other controls: 6 combo boxes, 4 multi select list boxes and 4 textboxes. They all have different names [not just listbox1 ,2 etc.].
The Userform is to enable data entry into an excel table. When i press the command button to add the data to the table I would like vba to run through all the above stated controls to check if any of them are empty, [in the case of the list boxes the it would need to check whether or not at least one selection has been made].
If any of the controls would actually be empty i would like a message box popup which lists which controls are empty and askes the user whether they still wish to proceed or not.
If anyone out there has the time to help me, or at least offer guidance It would be greatly appreciated.