Hi guys,
I am brand new to excel.
I have a sheet "forecast" where there are columns like Name,Department, Employee Id.. each having 400+ rows and they might increase.
I have a userform where there are 2 dependent comboboxes named combo1,combo2.I have added few column names to combo1 as they are limited as below.
Private Sub UserForm_Initialize()
With combo1
.AddItem "Employee ID"
.AddItem "Name"
.AddItem "Department"
End With
End Sub
When I select "Name" from combo1, the combo2 pulls the data from the respective column. mind that these values should be unique and blank spaces should be ignored.
Any help will be much appreciated...
Thanks
I am brand new to excel.
I have a sheet "forecast" where there are columns like Name,Department, Employee Id.. each having 400+ rows and they might increase.
I have a userform where there are 2 dependent comboboxes named combo1,combo2.I have added few column names to combo1 as they are limited as below.
Private Sub UserForm_Initialize()
With combo1
.AddItem "Employee ID"
.AddItem "Name"
.AddItem "Department"
End With
End Sub
When I select "Name" from combo1, the combo2 pulls the data from the respective column. mind that these values should be unique and blank spaces should be ignored.
Any help will be much appreciated...
Thanks