I have the below dropdown combobox code that works perfectly.
But now need to split this to two dependent dropdown lists/comboboxes.
The first dropdown combobox list should contain all worksheets that contain the name that appears to the left of a hyphen on the worksheet tab.
The second dropdown/combobox list should contain all the words that are to the right of the hyphen on the worksheets tabs that are from the first dropdown list.
Much the same as;
First Dropdown list
Ford
Second Dropdown List
Mustang
Explorer
Ranger
F-150
VBA Code:
Private Sub Worksheet_Activate()
Dim ws As Worksheet
Me.ComboBox1.Clear
For Each wh In ThisWorkbook.Worksheets
Me.ComboBox1.AddItem ws.Name
Next ws
End Sub
But now need to split this to two dependent dropdown lists/comboboxes.
The first dropdown combobox list should contain all worksheets that contain the name that appears to the left of a hyphen on the worksheet tab.
The second dropdown/combobox list should contain all the words that are to the right of the hyphen on the worksheets tabs that are from the first dropdown list.
Much the same as;
First Dropdown list
Ford
Second Dropdown List
Mustang
Explorer
Ranger
F-150