' ----------------------------------------------------------------------------
' ---&--- Valida el grup Llum
' ----------------------------------------------------------------------------
Private Sub c_llum_assesor_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger): Call Valida_Key(KeyAscii, c_llum_assesor): End Sub
Private Sub c_llum_comer1_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger): Call Valida_Key(KeyAscii, c_llum_comer1): End Sub
Private Sub c_llum_titular_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger): Call Valida_Key(KeyAscii, c_llum_titular): End Sub
Private Sub c_llum_potencia_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger): Call Valida_Key(KeyAscii, c_llum_potencia): End Sub
Private Sub c_llum_bosocial23_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger): Call Valida_Key(KeyAscii, c_llum_bosocial23): End Sub
Private Sub c_llum_bosocial_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger): Call Valida_Key(KeyAscii, c_llum_bosocial): End Sub
Private Sub c_llum_discrimina_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger): Call Valida_Key(KeyAscii, c_llum_discrimina): End Sub
Private Sub c_llum_atall_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger): Call Valida_Key(KeyAscii, c_llum_atall): End Sub
Private Sub c_llum_anova_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger): Call Valida_Key(KeyAscii, c_llum_atall): End Sub
Private Sub c_llum_reconex_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger): Call Valida_Key(KeyAscii, c_llum_reconex): End Sub
' ----------------------------------------------------------------------------
' ---&--- Valida el grup IRER
' ----------------------------------------------------------------------------
' ----------------------------------------------------------------------------
' ---&--- Valida el grup GAS
' ----------------------------------------------------------------------------
' ----------------------------------------------------------------------------
' ---&--- Valida el grup AIGUA
' ----------------------------------------------------------------------------
' ----------------------------------------------------------------------------
' ---&--- Valida caracter
' ----------------------------------------------------------------------------
Sub Valida_Key(Key, Objeto)
If Chr(Key) = "1" And Len(Objeto.Text) = 0 Then
' Objeto.Text = "1"
Else
Key = 0
End If
End Sub