Esta es otra forma para ocupar los iconos que se necesitan en un proyecto:
Private Sub Activar_xime()
OptionButton1.Enabled = True
OptionButton2.Enabled = True
OptionButton3.Enabled = True
OptionButton4.Enabled = True
OptionButton5.Enabled = True
OptionButton6.Enabled = True
OptionButton7.Enabled = True
OptionButton8.Enabled = True
OptionButton9.Enabled = True
OptionButton10.Enabled = True
OptionButton11.Enabled = True
OptionButton12.Enabled = True
OptionButton13.Enabled = True
OptionButton14.Enabled = True
End Sub
Private Sub Desactivar_xime()
OptionButton1.Enabled = False
OptionButton2.Enabled = False
OptionButton3.Enabled = False
OptionButton4.Enabled = False
OptionButton5.Enabled = False
OptionButton6.Enabled = False
OptionButton7.Enabled = False
OptionButton8.Enabled = False
OptionButton9.Enabled = False
OptionButton10.Enabled = False
OptionButton12.Enabled = False
OptionButton13.Enabled = False
OptionButton14.Enabled = False
End Sub
Private Sub Activar_jesi()
OptionButton15.Enabled = True
OptionButton16.Enabled = True
OptionButton17.Enabled = True
OptionButton18.Enabled = True
OptionButton19.Enabled = True
OptionButton20.Enabled = True
OptionButton21.Enabled = True
OptionButton22.Enabled = True
OptionButton23.Enabled = True
OptionButton24.Enabled = True
OptionButton25.Enabled = True
OptionButton26.Enabled = True
OptionButton27.Enabled = True
OptionButton28.Enabled = True
OptionButton29.Enabled = True
OptionButton30.Enabled = True
End Sub
Private Sub Desactivar_jesi()
OptionButton15.Enabled = False
OptionButton16.Enabled = False
OptionButton17.Enabled = False
OptionButton18.Enabled = False
OptionButton19.Enabled = False
OptionButton20.Enabled = False
OptionButton21.Enabled = False
OptionButton22.Enabled = False
OptionButton23.Enabled = False
OptionButton24.Enabled = False
OptionButton25.Enabled = False
OptionButton26.Enabled = False
OptionButton27.Enabled = False
OptionButton28.Enabled = False
OptionButton29.Enabled = False
OptionButton30.Enabled = False
End Sub
Suscribirse a:
Enviar comentarios (Atom)
No hay comentarios:
Publicar un comentario