Greetings,
Another newbie: I have a userform (Userform1) with a listbox, comboboxes, textboxes, and 6 groups of radio buttons (opt1 and opt2 in groupname "Car"; opt3 and opt4 in groupname "Bus"; etc.) and 5 command buttons "New", "Save", "Delete", "Cancel" and "Edit". My worksheet has 13 columns of data and 100+ rows. I have been successful in populating the listbox with row data getting the controls located on the userform to display in their respective values when a user selects a row from the listbox. My problem is after the user edits the data to any of the controls, I am unable to get the edits to change on the worksheet and unable to get the listbox to show the changes in real time when the user clicks the "Save" button.
I was able to find some code to do exactly everything that I am needing but it only has textboxes on the userform (see attachment). I am totally clueless on how to modify this code to include comboboxes and option radio buttons. Using the sample attachment code, I have tried the following but to no avail.
I can get the textbox updates to work fine but the option buttons and combo boxes are not updating on the worksheet nor on Listbox1. I originally tried
But doesn't seem to recognize a comboBox or Option Button as controls in Excel VBACode so I change it to TypeName(ctrl) = "ComboBox" Or TypeName(ctrl) = "OptionButton" Then...
Do you have any suggestions on how I can go about modifying the attach sample code to include reference to the comboboxes and option buttons on my userform? Again the sample attachment is doing everything that I need to do. Any assistance or advice is greatly appreciated. Thank you in advance.
Bookmarks