
OptionButton
Publicado por Patricio (29 intervenciones) el 21/06/2007 23:21:57
Hola a todos, tengo un UserForm en el cual tengo 2 OptionButton y un CommandButon, yo deseo que al seleccionar una de las opciones y pulsar el CommandButton se abra la pagina que seleccione, estando en otro archivo...Tengo este codigo pero me da error, Alguien Puede AYUDARME PLISSSS
Private Sub CommandButton1_Click()
If OptionButton1.Value = True Then
opcion = "2006"
Else
If OptionButton2.Value = True Then
opcion = "2007"
Else
End If
End Sub
Private Sub OptionButton1_Click()
OptionButton1.Caption = "2006"
End Sub
Private Sub OptionButton2_Click()
OptionButton1.Caption = "2007"
End Sub
AGRADECERIA MILLONES LA AYUDA.
Private Sub CommandButton1_Click()
If OptionButton1.Value = True Then
opcion = "2006"
Else
If OptionButton2.Value = True Then
opcion = "2007"
Else
End If
End Sub
Private Sub OptionButton1_Click()
OptionButton1.Caption = "2006"
End Sub
Private Sub OptionButton2_Click()
OptionButton1.Caption = "2007"
End Sub
AGRADECERIA MILLONES LA AYUDA.
Valora esta pregunta


0