Hi Guy's maybe i have done the wrong method here in finding a £ sign then returning the next characters but i have added the highlighted extra to post 1 just to see if i can return but nothing happens! is this a difficult task ?
Code:
Dim clEmail() As String, EmailAdd As String, MailBody As String
Dim j As Integer
Dim app As Object
Dim SearchString As String, myValue As String
MailBody = Me.txtMailMessage
clEmail = Split(MailBody, vbCrLf)
For j = 0 To UBound(clEmail)
If InStr(1, clEmail(j), "Email Address:") > 0 Then
EmailAdd = Mid(clEmail(j), 16)
End If
Next j
Set app = GetObject(, "Outlook.Application")
'On Error GoTo 0
If app Is Nothing Then
Set app = CreateObject("Outlook.Application")
app.Explorers.Add app.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox)
app.Explorers(1).Activate
End If
SearchString = EmailAdd
app.ActiveExplorer.Search SearchString, olSearchScopeAllFolders
Set app = Nothing
DoCmd.RunCommand acCmdAppMinimize
If InStr(1, MailBody, "£") > 0 Then
myValue = Mid(MailBody, InStr(1, MailBody, "£"), 7)
MsgBox (myValue)
End If