AQUI ESTA EL CODIGO (ERROR5)
Publicado por GIUSEPPE (34 intervenciones) el 10/12/2004 20:01:05
Aqui esta el codigo que les digo muchachos chequenlo, la funcion de verificarangodato es la que me checa si el dato cumple con los valores maximo y minimos... y el vaspread1_leabecell es la que me manda llamar esa funcion de verificarangodato. Que es lo que tengo mal, para que el msgbox de "Fuera Rango" al compilarlo me lo muestre dos veces
Private Sub vaSpread1_LeaveCell(ByVal Col As Long, ByVal Row As Long, ByVal NewCol As Long, ByVal NewRow As Long, Cancel As Boolean)
If IsNumeric(Col) Then
If Col = 6 Or Col = 7 Or Col = 8 Then
Call VerificaRangoDato(Col, Row)
End If
End If
If IsNumeric(NewCol) Then
If NewCol > 0 Then
Columna = NewCol
Renglon = NewRow
Proc_calcula_maximosyminimos Columna, Renglon
End If
End If
End Sub
Private Sub vaSpread1_LeaveCell(ByVal Col As Long, ByVal Row As Long, ByVal NewCol As Long, ByVal NewRow As Long, Cancel As Boolean)
If IsNumeric(Col) Then
If Col = 6 Or Col = 7 Or Col = 8 Then
Call VerificaRangoDato(Col, Row)
End If
End If
If IsNumeric(NewCol) Then
If NewCol > 0 Then
Columna = NewCol
Renglon = NewRow
Proc_calcula_maximosyminimos Columna, Renglon
End If
End If
End Sub
Valora esta pregunta


0