Altering Selections in a ComboBox dependant on another ComboBox

Jason_VBANew

New Member
Joined
Aug 31, 2014
Messages
1
Hi,

I am new to using VBA in excel and need help setting up a combobox used on a form. I have a combo box that is set up to be able to select a product and then I would like to limit the number of selections in the next combobox dependant on the first selection.

For example:
i) If I select product 1 from combobox1; then only batch numbers 0123, 4567, 8910 are available for selection in combobox2.
ii) If I select product 2 from combobox1; then only batch numbers 1098, 7654, 3210 are available for selection in combobox2.

If possible, I would then also like the next field (textbox1) be automatically populated with an expiry date based on the selection in combox2 using a vlookup function. The expiry dates are on another sheet within the workbook (sheet2).

Thanks,

Jason_VBANew
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,191,054
Messages
5,984,388
Members
439,883
Latest member
onions44

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
Top