I am not very familiar with VBA codes. I would like to copy the original received Email Body with attachment and pasted in to a new email.
Currently I am using the below code which I found in a website. But when I use this code, I am getting original sender's signature (instead of changing my signature). Could someone advise how to fix this?
Sub RedirectEmail()
Dim olItem As MailItem
Dim olNewMail As MailItem
Set olItem = Application.ActiveExplorer.Selection.item(1)
If olItem.Class = olMail Then
Set olNewMail = olItem.Forward
With olNewMail
'Remove "FW" prefix in subject
.Subject = olItem.Subject
.HTMLBody = olItem.HTMLBody
.Display
End With
End If
End Sub
Currently I am using the below code which I found in a website. But when I use this code, I am getting original sender's signature (instead of changing my signature). Could someone advise how to fix this?
Sub RedirectEmail()
Dim olItem As MailItem
Dim olNewMail As MailItem
Set olItem = Application.ActiveExplorer.Selection.item(1)
If olItem.Class = olMail Then
Set olNewMail = olItem.Forward
With olNewMail
'Remove "FW" prefix in subject
.Subject = olItem.Subject
.HTMLBody = olItem.HTMLBody
.Display
End With
End If
End Sub