Ok so now you are happyish
I will tell you what I have done. It would have been pointless before.
Firstly did you see the uniquely sorted lists on the right of the data? Columns M to P inclusive?
Those are the values that I used to create the Data Validation Lists in rows 3 and 4, side stepping the need for ComboBoxes.
Lets focus on one of those lists.
M1 to M 5 Contains the following values:-
Manu
DH
KF
KM
PO
This is a Unique Sorted List based on the data in your column B.
The formula used is the array formula:
Entered using Ctrl Shift Enter.
Manu
Refers to a Dynamic Named Range which will adjust to cope with the amount of data you have ie as you add more rows.
Select Formula, Name Manager and you will see that I have created 8 of these.
The formula for Manu is:-
This link is to a video that explains the above two formulas in great detail and a lot better than I could:-
https://www.youtube.com/watch?v=IZLAzIYfMDU
Manu2
This returns M2:M5 which is the list I want to use for the data validation in B3
NB: This is a revised formula
This formula works too:
It is trial and error I am afraid
Similar formulas for all 4 Data Validations
Then I Selected Data Validation, selected from a list
And used the formula to tell excell what list to use.
Now for the Macros
The first and simplest macro is in the Database Sheet, it is therefore sheet specific.
Right Click on Database at the bottom of excel and select view code.
this code will be displayed:
The Next Macro is also sheet specific but because I am using the tab as a macro button, it is more difficult to view.
Select the Developer tab and then visual basic.
Select view and then View and Project Explorer
Double Click on Sheet2(Search)
you should then see this code:-
I think it is self explanatory
The final two Macros are in the userform.
You access then in the same way as the last macro.
Select the Developer tab and then visual basic.
Select view and then View and Project Explorer
Select the Userform
Double click on the userform
The Last Macro is run when you select an entry on the listbox.
Bookmarks