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

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
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,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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