Good day to all of you VBA masters!
Dependent dropdowns in userform are the bane of my existence and make me very.....very sad. But they are super useful and I once again need help in writing the code for it.
So I have a Table laid out like below;
Table1
[TABLE="width: 500"]
<TBODY>[TR]
[TD]1a[/TD]
[TD]a[/TD]
[/TR]
[TR]
[TD]1a[/TD]
[TD]aa[/TD]
[/TR]
[TR]
[TD]1a[/TD]
[TD]aaa[/TD]
[/TR]
[TR]
[TD]2b[/TD]
[TD]b[/TD]
[/TR]
[TR]
[TD]2b[/TD]
[TD]bb[/TD]
[/TR]
[TR]
[TD]3c[/TD]
[TD]c[/TD]
[/TR]
[TR]
[TD]3c[/TD]
[TD]cc[/TD]
[/TR]
[TR]
[TD]3c[/TD]
[TD]ccc[/TD]
[/TR]
[TR]
[TD]4d[/TD]
[TD]d[/TD]
[/TR]
</TBODY>[/TABLE]
I currently use the following code to populate the first textbox. This textbox will be one of the values from the above table in the first column.
So I need the dependent dropdown combobox to look at the Txt.Value and show the corresponding info. For example, if TxtValue = 3c, then the dropdown should populate c, cc, ccc. Can you help?
Dependent dropdowns in userform are the bane of my existence and make me very.....very sad. But they are super useful and I once again need help in writing the code for it.
So I have a Table laid out like below;
Table1
[TABLE="width: 500"]
<TBODY>[TR]
[TD]1a[/TD]
[TD]a[/TD]
[/TR]
[TR]
[TD]1a[/TD]
[TD]aa[/TD]
[/TR]
[TR]
[TD]1a[/TD]
[TD]aaa[/TD]
[/TR]
[TR]
[TD]2b[/TD]
[TD]b[/TD]
[/TR]
[TR]
[TD]2b[/TD]
[TD]bb[/TD]
[/TR]
[TR]
[TD]3c[/TD]
[TD]c[/TD]
[/TR]
[TR]
[TD]3c[/TD]
[TD]cc[/TD]
[/TR]
[TR]
[TD]3c[/TD]
[TD]ccc[/TD]
[/TR]
[TR]
[TD]4d[/TD]
[TD]d[/TD]
[/TR]
</TBODY>[/TABLE]
I currently use the following code to populate the first textbox. This textbox will be one of the values from the above table in the first column.
Code:
Private Sub UserForm_Initialize()
'Get Raid Name from Active Raid
Me.Txt.Value = Cells(3, 2)
End Sub
So I need the dependent dropdown combobox to look at the Txt.Value and show the corresponding info. For example, if TxtValue = 3c, then the dropdown should populate c, cc, ccc. Can you help?