2015-03-02 91 views
0

我一直在使用公共文件夹并在outlook上发送电子邮件。无论何时我们使用公共文件夹电子邮件地址(例如,[email protected])发送电子邮件,我们都会发送CC [email protected]。以便我们将电子邮件保存在公共文件夹中。VBA展望 - 发送电子邮件并对CC电子邮件进行分类

我创建了一些自动发送Outlook电子邮件的VBA代码。 我的问题是:是否有可能自动分类(如客户查询)在我们的公共文件夹中的邮件时,我发送电子邮件,而不显示类别接受者(如

Sub outlookActivate1() 
    Dim OutApp As Outlook.Application 
    Dim OutMail As Outlook.MailItem 

    Set OutApp = CreateObject("Outlook.Application") 


    With OutMail 

     .BCC = "" 
     .BodyFormat = olFormatHTML 

     .Categories = "customer-inquiry" 
     .ShowCategoriesDialog 
     .Save 
     .display 

End With 

On Error GoTo 0 


    Set OutMail = Nothing 
    Set oItem = Nothing 

End Sub 
+0

我会将发送的邮件保存到邮箱中,而不是抄送邮件。 。 – Max 2015-03-02 20:54:15

回答

0

不,事实并非如此。您可以考虑在邮件中添加一个用户属性,请参阅UserProperties以获取更多信息。