简体   繁体   English

在草稿电子邮件显示中隐藏密件抄送字段

[英]Hide bcc field in draft email display

I'm trying to hide the Bcc field in an email being drafted in Outlook 2010.我试图在 Outlook 2010 中起草的电子邮件中隐藏密件抄送字段。

I'm using code to add an email address to Bcc which shows the field.我正在使用代码将电子邮件地址添加到显示该字段的密件抄送。 I want the real-estate on the screen back.我想要屏幕上的不动产。

Here's what I have so far (in ThisOutlookSession):这是我到目前为止所拥有的(在 ThisOutlookSession 中):

Sub add_bcc_to_cur_email()
    Dim cur_msg As MailItem
    Set cur_msg = ActiveInspector.CurrentItem
    cur_msg.BCC = "first.last@domain.com" 'this works correctly
    cur_msg.GetInspector.CommandBars.ExecuteMso "Bcc" 'this does nothing
End Sub

I was thinking there was a way to control the visibility of the Bcc field directly.我在想有一种方法可以直接控制密件抄送字段的可见性。 I found this -- The second post seemed to have a solution, but that was for 2003.我发现了 这个——第二篇文章似乎有一个解决方案,但那是 2003 年的。

I thought I could try to launch the Bcc item in the Ribbon: Options > Show Fields > Bcc.我想我可以尝试在功能区中启动密件抄送项目:选项 > 显示字段 > 密件抄送。
I googled and came up with this .我用谷歌搜索并想出了这个 The thread seemed to be inconclusive.该线程似乎没有定论。

这在 2010 年对我有用

cur_msg.GetInspector.Commandbars("Menu Bar").Controls("View").controls("Bcc Field").execute

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM