Home All Groups Group Topic Archive Search About
Author
21 Dec 2004 1:30 AM
Jacky Luk
I am wondering if I just want to stick a picture on an email, remember not
attaching to it, is it possible to do this in outlook? In outlook express,
you can choose from sticking or attaching a picture, but in VBA, can you
programmatically sticking it on an email?....
I tried this for attaching before
With oAttachment(0)
      .filepath = "C:\123.gif"
        ......
end with
Could anyone help?
Thanks
Jack

Author
21 Dec 2004 2:56 AM
Sue Mosher [MVP-Outlook]
See http://www.outlookcode.com/d/code/htmlimg.htm

--
Sue Mosher, Outlook MVP
Author of
     Microsoft Outlook Programming - Jumpstart for
     Administrators, Power Users, and Developers
     http://www.outlookcode.com/jumpstart.aspx


Show quoteHide quote
"Jacky Luk" <j*@knight.com> wrote in message
news:e8$mMyv5EHA.1296@TK2MSFTNGP10.phx.gbl...
>I am wondering if I just want to stick a picture on an email, remember not
> attaching to it, is it possible to do this in outlook? In outlook express,
> you can choose from sticking or attaching a picture, but in VBA, can you
> programmatically sticking it on an email?....
> I tried this for attaching before
> With oAttachment(0)
>      .filepath = "C:\123.gif"
>        ......
> end with
> Could anyone help?
> Thanks
> Jack
>
>
Are all your drivers up to date? click for free checkup

Author
21 Dec 2004 1:41 PM
Ken Slovak - [MVP - Outlook]
It would have to be done using HTML code in the HTMLBody property of the
item, the reference to the picture must be local or you'll get that red X
where the picture should be and all collections in Outlook such as
Attachments start at index 1, not 0.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


Show quoteHide quote
"Jacky Luk" <j*@knight.com> wrote in message
news:e8$mMyv5EHA.1296@TK2MSFTNGP10.phx.gbl...
> I am wondering if I just want to stick a picture on an email, remember not
> attaching to it, is it possible to do this in outlook? In outlook express,
> you can choose from sticking or attaching a picture, but in VBA, can you
> programmatically sticking it on an email?....
> I tried this for attaching before
> With oAttachment(0)
>       .filepath = "C:\123.gif"
>         ......
> end with
> Could anyone help?
> Thanks
> Jack
>
>

Bookmark and Share