Form Control Combo Box Question

dmill8023

Board Regular
Joined
Aug 24, 2012
Messages
60
Hello all! I have a question regarding Form Control Combo Box. I have developed a very simple Combo Box in Form Control where I have a list of 16 cities. When selecting a new city, I want a corresponding cell ($G$1) to update to the new cell I've selected. So, if I select Atlanta from my Combo Box I want $G$1 to show Atlanta. If I select Chicago from my Combo Box I'd like G$1$ to show Chicago. Does anyone know how to make this happen? I can't do an equals formula and am new with Combo Boxes. Thanks everyone for your help!!
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hi,

I’m not sure if this is what you want
Code:
 Private Sub ComboBox1_Change()
    Range("G1").Value = ComboBox1.Value
End Sub
 
Upvote 0
I'll admit I'm an extreme novice when it comes to writing VBA code in excel. I was not able to get it to work. I went through Developer-->Visual Basic-->VBAProject (Book1) and I entered the code under Sheet1, Sheet2, ThisWorkbook and nothing seems to work...? Apologies for the inexperience
 
Upvote 0
You are saying
Code:
 I have developed a very simple Combo Box in Form Control
Open (do not run) User Form & Double click on ComboBox1 & enter code there.
 
Upvote 0
I was unable to get the code to work...I ended up using data validation list for my drop down and it works well enough. Thank you for your assistance. I am taking an Excel class to hopefully gain a better understanding of VBA within Excel
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,259
Members
452,626
Latest member
huntinghunter

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