How do I fill a cell depending on the ListBox value?

DreyFox

Board Regular
Joined
Nov 25, 2020
Messages
61
Office Version
  1. 2016
Platform
  1. Windows
Hello! EDIT: Wrong title, sorry

For this problem of mine, I know what I need to do, but I'm not really sure where and how to implement it properly. So:

If the checkbox is selected, and the first combobox is selected, the options for the first combobox will be allowed to be selected. Then, if that happens the sub module (ClearComboBox1(), ClearComboBox2(), ....so on) function will be called to clear the remaining comboboxes. The code for clearing one of them is shown below:
VBA Code:
Sub ClearComboBox1()
ActiveSheet.Shapes.Range(Array("ComboBox1")).Select
With Selection
    .ListFillRange = ""
End With
End Sub

ElseIf the first and second comboboxes are selected, then the 3rd, 4th, and 5th comboboxes are cleared. And so on. I'll show what I'm attempting to achieve with an image below:
1607709777223.png

So what I would like to do is, when two Cartridge options are selected the remaining 5 ComboBoxes are cleared. I would also like 4 options cleared when someone chooses a single Cartridge and checks the left checkboxes for a duplicate of the same one.

Any help would be appreciated.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,215,208
Messages
6,123,644
Members
449,111
Latest member
ghennedy

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