Hi,
I have a userform with seven textboxes and seven related comboxes. So far the code works by preventing the combobox from being activated unless something is in the related textbox. Also it prevents the OK button from being activated if a textbox is populated but its related combobox is empty:
To be more efficient because the code is redundant, I have create two generic subs (one for textboxes and one for comboboxes) and I call each respective sub from the Change Event sub for the respective textbox and combobox.![]()
Please Login or Register to view this content.
Is there a way to remove all these change event subs. Something maybe like:
I know that this is not correct, but there is a correct syntax or this not possible?![]()
Please Login or Register to view this content.
abousetta
Bookmarks