Combo Box Selection

Menessis2

New Member
Joined
Dec 9, 2018
Messages
26
Once the combo box has been clicked and the value saved to a variable is there a way to get the range that was used? In my case the "row". I have a list (range) of customer names and phone numbers and such. After selecting a customer name from the combo box I want to fill out a sheet with all that information that goes with that selection.

Thanks
Menessis
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Is the combobox on a worksheet or a userform? If it is on a worksheet, is it an ActiveX or a Forms control? Do you have it linked to a cell?

Please show the code where you save the value to a variable.
 
Upvote 0
So tell us what you would like to happen after you choose the value from the combobox.

So for example if you choose 2 from the combobox.
Your script could say
Dim ans as long
ans=Combobox1.value

Sheets(2).Cells(ans,1).Value="Duck"

This is a example
 
Upvote 0
Hi guys. Once I have the initial value, in my case it will be a "job tag" from a data list of all the job tags, company names, contacts, phone numbers and anything else associated with that job tag. Since each set of data is in a row it would be easy to use the row number and an offset to grab the associated data and fill out the work order. Other wise I will have to use a loop to do it. Not a big deal.

Thanks
Menessis
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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