Ayuda con Userform y hoja de calculo

Masc4811

New Member
Joined
Jan 31, 2007
Messages
2
Buenos Dias....

Estoy buscando ayuda para resolver algunos problemas entre los cuales este es uno:

Tengo un Userform con una serie de check box, esto es lo que deseo que haga:
1.- al selecionar una de las opciones, debe aparecer una marca de selecion en la hoja de trabajo y asignar un numero predeterminado que varia de acuerdo a los distinto checkbox que tengo, pero si deseleciono debe de desaparecer la marca y asumir nuevamente un valor de cero...

Soy nuevo en esto... si necesitan ver la hoja y el codigo puedo enviarselo por e-mail...... Apreciaria cualquier ayuda que pudiese recibir..

Gracias
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Prueba algo parecido a esto:

Private Sub grCheckBox1_Click()

If grCheckBox1 Then
Hoja1.[a1] = 1
Else

Hoja1.[a1] = ""
End If


End Sub
Private Sub grCheckBox2_Click()

If grCheckBox2 Then
Hoja1.[a1] = 2
Else

Hoja1.[a1] = ""
End If


End Sub
Private Sub grCheckBox3_Click()

If grCheckBox3 Then
Hoja1.[a1] = 3
Else

Hoja1.[a1] = ""
End If


End Sub
GALI
 
Upvote 0

Forum statistics

Threads
1,223,958
Messages
6,175,636
Members
452,662
Latest member
Aman1997

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