Ver Mensaje Individual
  #4 (permalink)  
Antiguo 10/04/2006, 07:51
Avatar de David
David
Moderador
 
Fecha de Ingreso: abril-2005
Ubicación: In this planet
Mensajes: 15.720
Antigüedad: 20 años
Puntos: 839
Esto seria que quiere extraer la parte numerica del String, ahi si se entiende un poco, a ver:
Código:
 
Function TheFunction()
Dim I As Integer
Dim NumericPart As String
For I = 1 To Len("ABC1234")
    If Not IsNumeric(Right("ABC1234",I)) Then
         NumericPart = Right("ABC1234", I-1)
         Exit For
    End If
Next I
TheFunction = Len(Text1) - Len(NumericPart)
End Function
__________________
Por favor, antes de preguntar, revisa la Guía para realizar preguntas.

Última edición por David; 10/04/2006 a las 19:41