Make a selection in a ComboBox based on a specific cell input

DaniVD

New Member
Joined
Jan 31, 2014
Messages
2
I'm trying to do this without using VBA.

I have 3 combo boxes with a list of 10 available selection items(the 3 combo boxes have the same list of 10 items). I want them to default to a specific selection when a value is entered in Cell A1. I want to save some time for the user, so that the user can input a value and all 3 combo boxes select that value from their list. Thanks in advance.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
You could link all three comboboxes to cell A1, but anytime you change one combobox, the other two would change to the same value as well. I doubt that's what's you want.

I think it would require VBA. The code would be simple. What type of comboboxes are you using; ActiveX-type or Form-type?
 
Upvote 0
You could link all three comboboxes to cell A1, but anytime you change one combobox, the other two would change to the same value as well. I doubt that's what's you want.

I think it would require VBA. The code would be simple. What type of comboboxes are you using; ActiveX-type or Form-type?


I'm using Form-type. I was trying to avoid VBA but it looks like that would be the simpler way to go. Thanks for the advice.
 
Upvote 0
  • Right-click on the sheet tab and select View Code from the pop-up context menu.
  • Paste the code below in the worksheet's code module.
  • Change the names of the three Drop Down form-type controls to suit.

Code:
[COLOR=darkblue]Private[/COLOR] [COLOR=darkblue]Sub[/COLOR] Worksheet_Change([COLOR=darkblue]ByVal[/COLOR] Target [COLOR=darkblue]As[/COLOR] Range)
    [COLOR=darkblue]If[/COLOR] Target.Address(0, 0) = "A1" [COLOR=darkblue]Then[/COLOR]
        ActiveSheet.DropDowns("[B]Drop Down 1[/B]").Text = Target.Value
        ActiveSheet.DropDowns("[B]Drop Down 2[/B]").Text = Target.Value
        ActiveSheet.DropDowns("[B]Drop Down 3[/B]").Text = Target.Value
    [COLOR=darkblue]End[/COLOR] [COLOR=darkblue]If[/COLOR]
End [COLOR=darkblue]Sub[/COLOR]
 
Upvote 0

Forum statistics

Threads
1,215,539
Messages
6,125,403
Members
449,222
Latest member
taner zz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top