Only visible CB set a value

otrava18

Board Regular
Joined
Feb 11, 2018
Messages
61
Hello,

I have a Userform with 100 Comboboxes (like a matrix 10 x 10). I want to have another 10 to modify 10 CB from matrix in the same time but only visible ones. I need to have something like that : when ComboBoxA is modified, which CB from ComboBox1 to ComboBox10 is visible, to have the ComboboxA value. ComboBoxA to be like a column head. I don`t know how to do that. Can you give me a solution ?

Thank you !
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hi

IF I UNDERSTAND CORRECTLY?

So on userform activate, i would set all the comboboxes to
.Visible = False
excpet the 10 header ones.

Then code the change event of the main Header comboboxes.

like as an example

VBA Code:
Private Sub ComboBox1_Change()

Me.ComboBox2.Visible = True
Me.ComboBox2 = ComboBox1.value
Me.ComboBox3.Visible = True
Me.ComboBox3 = ComboBox1.value
Me.ComboBox4.Visible = True
Me.ComboBox4 = ComboBox1.value

End Sub
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,685
Members
448,977
Latest member
dbonilla0331

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