combobox vba vinculado a casillas de verificacion

adyfitiu

New Member
Joined
Nov 6, 2020
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
si alguien puede sacarme de duda ...

Tengo que hacer un desplegable con una lista de elementos y luego, según el elemento elegido en la lista desplegable, se marcarán las casillas de verificación.

Por ejemplo, para el primer elemento, se marque las primeras 5 casillas de verificación. Para el segundo elemento, la casilla de verificación 1, 3 y 5 y así sucesivamente ...

Este es mi código en este momento:
VBA Code:
Private Sub ComboBox1_AfterUpdate ()
Seleccione Case Me.ComboBox1.Value
      Caso "Puesto1"
ComboBox1.Value = "Puesto1"
      Caso "Puesto2"
ComboBox1.Value = "Puesto2"
   Finalizar Seleccionar
End Sub


Subprivado CheckBox101_AfterUpdate ()
Si Me.ComboBox1.Value = "Puesto1" Entonces
CheckBox101.Value = Verdadero
CheckBox102.Value = True
CheckBox103.Value = True
Más
Me.ComboBox1.Value = "Puesto2"
CheckBox101.Value = Verdadero
CheckBox102.Value = False
CheckBox103.Value = True
Terminara si
     ComboBox1_AfterUpdate
End Sub

no consigo hacer funcionar los valores del cuadro combinado
 
Last edited by a moderator:

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Forum statistics

Threads
1,223,931
Messages
6,175,465
Members
452,646
Latest member
tudou

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