使用VBA将图像插入Outlook邮件 [英] Inserting an image into an Outlook mail using VBA

查看:860
本文介绍了使用VBA将图像插入Outlook邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将图像作为嵌入式对象插入到Outlook邮件中的VBA代码是什么

what is the VBA code to insert an image into an Outlook mail as an embedded object

推荐答案

您是指附件吗?

如果是.然后看看 Microsoft Office Outlook 2003 VBA语言参考 [^ ].

The following Visual Basic for Applications (VBA) example creates a new mail message, attaches Q496.xls as an attachment (not a link), and gives the attachment a descriptive caption.
Did you mean as an attachment?

If yes. then take a look at code from Microsoft Office Outlook 2003 VBA Language Reference[^].

The following Visual Basic for Applications (VBA) example creates a new mail message, attaches Q496.xls as an attachment (not a link), and gives the attachment a descriptive caption.
Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItem(olMailItem)
Set myAttachments = myItem.Attachments
myAttachments.Add "C:\My Documents\Q496.xls", _
    olByValue, 1, "4th Quarter 1996 Results Chart"


这篇关于使用VBA将图像插入Outlook邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆