98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Excel VBA Combo box
Excel VBA Combo box
Resolved · Low Priority · Version 2003
Andy has attended:
Excel Advanced course
Excel VBA Intro Intermediate course
Excel VBA Combo box
Hi,
I am trying to get a list to appear in a number of list or combo boxs. the list is in a sheet called "Players Lists" and runs from cells C2 to C32.
In the second combo box I would like to have all the options in the first combo box apart from the one selected in combo box 1.
Hope that makes sense
Thanks
Andy
RE: Excel VBA Combo box
Hi Andy, thanks for your query. You could achieve this by modifying our code on the Excel VBA intro intermediate course, in which we loaded up two comboboxes from lists on a worksheet. We simply looped through a list on a worksheet and added the cell values into the combobox. However, you could add in an IF test to see whether each successive cell value was equal to the combobox.value property selected by the user and if it was to skip it, move on to the next iteration of the loop, thereby filtering out those values from the second combobox list. This sounds involved but shouldn't take any more coding than you have already achieved on the Intro Intermediate course. Have a try, and if you need any further assistance, drop me a line back and I'll post the code here.
Hope this helps,
Anthony
Training information:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Moving between Worksheets without using the mouseUse the 'Ctrl+PgDn' and 'Ctrl+PgUp' keys. |