Cita de: *PsYkE1* en 5 Junio 2010, 22:03 PM
Jejejeje, gracias, se me escapo...
Tampoco seria necesario el segundo Exit Function...
Salu2!
Código (vb) [Seleccionar]
Public Function Text_Between_Words(Text As String, String1 As String, String2 As String) As String
Dim Pos1 As Integer, Pos2 As Integer, Start As Integer
If Len(Text) > 0 Then
Pos1 = InStr(1, Text, String1)
If Pos1 > 0 Then
Start = Pos1 + Len(String1): Pos2 = InStr(Start, Text, String2)
If Pos2 > 0 Then Text_Between_Words = Mid$(Text, Start, Pos2 - Start)
End If
End If
End Function
Dulce Infierno Lunar!¡.