ws1 has Names in column B, and Serial Numbers in column C. Some names are duplicated due to a single person being associated with multiple serial numbers.
I have a user form that uses the selected cell to populate TextBox1 upon activation. I want ComboBox1 to list all of the Serial Numbers associated with the name in TextBox1 (which is still the selected cell value, as well).
Additionally, the selected cell with a name in it must be chosen prior to starting the macro which shows the user form. How can I have an error pop up if the selected cell upon starting the user form does not contain a value from ws1.Range("B7:B" & Lr)?
Also, because TextBox1 is populated with the selected cell value, I want it to appear in normal black text (I already tried some things that caused it to gray out), but I don't want the user to be able to click inside the text box or edit the value.
Lastly, how do I also prevent a user typed entry into ComboBox1? I only want the automatically generated Serial Numbers to be possible values. Thanks!
I have a user form that uses the selected cell to populate TextBox1 upon activation. I want ComboBox1 to list all of the Serial Numbers associated with the name in TextBox1 (which is still the selected cell value, as well).
Additionally, the selected cell with a name in it must be chosen prior to starting the macro which shows the user form. How can I have an error pop up if the selected cell upon starting the user form does not contain a value from ws1.Range("B7:B" & Lr)?
Also, because TextBox1 is populated with the selected cell value, I want it to appear in normal black text (I already tried some things that caused it to gray out), but I don't want the user to be able to click inside the text box or edit the value.
Lastly, how do I also prevent a user typed entry into ComboBox1? I only want the automatically generated Serial Numbers to be possible values. Thanks!