Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20-05-2008, 20:40:23
lee-mon-shu-pao lee-mon-shu-pao is offline
Buena Participación en el Foro
 
Registrado: feb 2005
Ubicación: Detras de un monitor...
Posts: 98
lee-mon-shu-pao Valoración +2
Predeterminado Re: sacar parte de un campo y crear tabla

Private Sub Command1_Click()
Dim Texto As String
Dim eMail As String
Dim ini As Integer
Dim fin As Integer

Texto = "xbc ffhr rjr To: nombre@hotmail.com Sent: Mon, 12 May 2008 15:53:36 +0200"

ini = InStr(Texto, " To: ")
fin = InStr(Texto, " Sent: ")
eMail = Mid(Texto, ini + 5, fin - ini - 5)

MsgBox "<" & eMail & ">"
End Sub

Espero aun te sirva.
__________________
---------------------
Ácido, pero vitamínico.

Maipú- Chile
Responder Con Cita