如何使用Outlook VBA在MailItem中设置或清除BCC字段的可见性 [英] How do I Set or Clear the Visibility of the BCC Field in a MailItem using Outlook VBA

查看:130
本文介绍了如何使用Outlook VBA在MailItem中设置或清除BCC字段的可见性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一些代码来向Outlook MailItem中的BCC字段添加地址:

I have developed some code to add an address to the BCC field in an Outlook MailItem :

展开 | 选择 | 换行 | 行号

推荐答案

我不认为BCC字段必须可见才能添加收件人。


所以唯一需要担心的情​​况是他们没有看到它,你想在发送电子邮件后将其设置为隐形。在这种特殊情况下,在他们发送电子邮件后,我不相信这种设置仍然存在。


但是,如果目标是添加BCC然后将其隐藏起来用户所以他们一开始并不知道BCC在那里,我不知道如何做到这一点。


我知道有一个注册表设置它控制是否显示BCC字段的默认值,但我不知道Outlook中将动态执行此操作的方法。
I don''t think the BCC field has to visible to add a recipient to it.

So the only case you need to worry about is when they don''t have it visible and you want to set it back to invisible after the e-mail is sent. In that particular situation, after they send the e-mail, I don''t believe that setting persists.

However, if the goal is to add a BCC and then hide it from user so they don''t know a BCC was there in the first place, I don''t know of a way to do that.

I know there''s a registry setting that controls the default of whether or not to show the BCC field, but I don''t know of a method within Outlook that will do so dynamically.


设置BCC值工作正常。这不是问题。不幸的是,设置值也有一个令人遗憾的副作用,即设置可见性。

我重置可见性的动机不是要隐藏用户的任何东西,而是要避免更改用户自己未选择的设置。我基本相信软件的无效性会在未经您许可的情况下代表您更改设置,并且根本不希望我的代码成为那样的代码。只不过我会考虑作为客人进入某人的房子并移动他们的家具以适合我个人的口味。恕我直言,这是一个错误的事情。


PS。一旦设置了这种方式,其他电子邮件的BCC可见性设置仍然存在,尽管您不会在发送的电子邮件中看到它(在任何情况下)。
Setting the BCC value works fine. That is not at issue. Unfortunately, setting the value has an unfortunate side-effect of setting the visibility too.

My motive for resetting the visibility is not to hide anything from the user at all, but rather to avoid making changes to the user''s settings that they have not chosen themselves. I have a fundamental belief in the naffness of software that changes settings on your behalf without your permission and simply don''t want my code to be that naff. No more than I would ever consider entering someone''s house as a guest and moving their furniture arround to suit my own personal tastes. It''s just a wrong thing to do IMHO.

PS. The BCC visibility setting does persist for other emails once set this way, although you won''t see it for sent emails (under any circumstances).


我在Outlook 2007中尝试了它并添加BCC领域的收件人并没有坚持我的设置。


也许2003年这样做了?我无法测试,因为我无法访问Office 2003.


您可以设置注册表值。但是,在重新启动之前,对于当前加载的Outlook进程,这并没有改变它。
I tried it in outlook 2007 and adding a recipient to the BCC field doesn''t persist the setting for me.

Perhaps it does so for 2003? I am unable to test that as I don''t have access to Office 2003 anymore.

You could set the registry value. But that doesn''t change it for the currently loaded Outlook processes until it is restarted.


这篇关于如何使用Outlook VBA在MailItem中设置或清除BCC字段的可见性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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