Combo Box Selection Populate Corresponding Cell

Arios

New Member
Joined
Sep 9, 2013
Messages
3
Hello,
I am attempting to use an ACTIVE X combo box. to deliver the desired function.

What i would like to do, is make a selection from the drop down combo box, and depending on what i select, have it populate other fields. PLEASE HELP!!!
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Welcome to MrExcel.

Populate what other fields with what? Maybe you need Data Validation with a List and VLOOKUP formulas in the 'other fields'.
 
Upvote 0
Ill be more specific.

I want to be able to select an item in the drop down box that is located "A1"- like Milk, and based on that selection, i would like it to populate B1 will "Dairy"
I used the technique found in this video (https://www.youtube.com/watch?v=cAVsPOvHlQA) and it worked GREAT, except, i need to use the "ACTIVEX" Combobox.
 
Upvote 0
I agree with Andrew, the Data Validation List would be better to use. I even have the code for it to do what you want it to do. You would have to expand for multiple target values, but that is simple enough.

Code:
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("G2:G6000")) Is Nothing Or Target.Cells.count > 1 Then Exit Sub
If Target.Value = "My Number" Then
        Target.Offset(0, 1).Select
        With Selection
            With .Validation
            .Delete
            .Add xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
            xlBetween, Formula1:="='my values'!$V$2:$V$9"
            End With
        End With
End If
End Sub
 
Upvote 0
I apologize for my lack of savvy'ness- im sure moderators deal with this often :confused:...a couple of questions.

1. the data I need to appear in the drop down-combo box runs from "A1" through "A687". I got this to work by going into properties on the combo box and entering the "list name" i have assigned for that range- so far, so good.

2. the corresponding data appears in "B1" through "B687"- this is the where it would draw from.

this is about as far as i am.

I entered VB and pasted the code, but im not sure which values to adjust?

thank you for your help!!!
 
Upvote 0

Forum statistics

Threads
1,214,925
Messages
6,122,301
Members
449,078
Latest member
nonnakkong

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