I select any mail to open a new mail item with a mailbody made up if the Subject, MailBody and FromSenderAddress of selected mail.
I get the signature content of the selected mail in my new mail body.
How do I eliminate the Signature content (Thanks..Regards...xxxxx.etc;) so it is not in my new mailbody.
Public Sub CreateNewMessage()
Dim objMsg As MailItem
Dim Selection As Selection
Dim obj As Object
Set Selection = ActiveExplorer.Selection
For Each obj In Selection
Set objMsg = Application.CreateItem(olMailItem)
With objMsg
.To = ""
.CC = ""
.BCC = ""
.Subject = ""
.Body = "<Subject> " & obj.Subject & _
" </Subject>" & vbCrLf & vbCrLf & _
"<Mail> " & obj.Body & " </Mail>" & vbCrLf & vbCrLf & _
"<Sender> " & obj.SenderEmailAddress & " </Sender>"
.Sensitivity = olConfidential
.Display
End With
Set objMsg = Nothing
Next
End Sub