首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >实现cc地址

实现cc地址
EN

Stack Overflow用户
提问于 2017-09-01 09:37:53
回答 1查看 69关注 0票数 0

我有一些代码可以正常工作:

代码语言:javascript
复制
Public WithEvents myItem As Outlook.MailItem

Private Sub Application_ItemLoad(ByVal Item As Object)
If Item.Class = olMail Then
    Set myItem = Item
End If
End Sub


Private Sub myItem_Open(Cancel As Boolean)

Dim oAccount As Outlook.Explorer
Dim oMail As MailItem

Set oAccount = Application.ActiveExplorer
MsgBox (oAccount.CurrentFolder.Store)

If oAccount.CurrentFolder.Store = "test@test.com" Then
    MsgBox ("CC needs to be added")
Else
    MsgBox ("no need to add CC")
End If
End Sub

我想添加一些类似于oAccount.CC = "email_address“的内容,以便自动填充碳复制字段。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-09-01 17:28:15

使用

代码语言:javascript
复制
set Recip = myItem.Recipients.Add("user@test.demo")
Recip.Type = olCC
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45997296

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档