Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Reply with picture in body of message (http://www.outlookbanter.com/outlook-vba/91006-reply-picture-body-message.html)

Maxx[_2_] May 30th 09 10:28 PM

Reply with picture in body of message
 
I'd like to mofify this code (if possible) so that it includes the picture
that is in the body of the e-mail.

Sub ReplyDelightful()
Set objInsp = Application.ActiveInspector
If Not objInsp Is Nothing Then
Set objItem = objInsp.CurrentItem
If objItem.Class = olMail Then
Set objReply = objItem.Reply
With objReply
.Body = "Delightful!" & vbCrLf & vbCrLf & "Thanks," & vbCrLf
& "David" & vbCrLf & .Body
.Display
End With
End If
End If

End Sub



Ken Slovak - [MVP - Outlook] June 1st 09 07:36 PM

Reply with picture in body of message
 
If this is an HTML message try using HTMLBody. Body will only return the
plain text rendering of the message.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Maxx" wrote in message
...
I'd like to mofify this code (if possible) so that it includes the picture
that is in the body of the e-mail.

Sub ReplyDelightful()
Set objInsp = Application.ActiveInspector
If Not objInsp Is Nothing Then
Set objItem = objInsp.CurrentItem
If objItem.Class = olMail Then
Set objReply = objItem.Reply
With objReply
.Body = "Delightful!" & vbCrLf & vbCrLf & "Thanks," &
vbCrLf & "David" & vbCrLf & .Body
.Display
End With
End If
End If

End Sub



Maxx[_2_] June 2nd 09 06:06 PM

Reply with picture in body of message
 
Ken,
THank you very much for your help.
David

"Ken Slovak - [MVP - Outlook]" wrote in message
...
If this is an HTML message try using HTMLBody. Body will only return the
plain text rendering of the message.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Maxx" wrote in message
...
I'd like to mofify this code (if possible) so that it includes the
picture that is in the body of the e-mail.

Sub ReplyDelightful()
Set objInsp = Application.ActiveInspector
If Not objInsp Is Nothing Then
Set objItem = objInsp.CurrentItem
If objItem.Class = olMail Then
Set objReply = objItem.Reply
With objReply
.Body = "Delightful!" & vbCrLf & vbCrLf & "Thanks," &
vbCrLf & "David" & vbCrLf & .Body
.Display
End With
End If
End If

End Sub






All times are GMT +1. The time now is 02:49 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com