Outlook 2010 - 更改菜单选项卡的名称
我被要求编写一个脚本来更改所有 Outlook 2010 用户功能区上的第 3 方选项卡的名称。
手动过程是转到“文件”>“选项>自定义功能区>选择右侧的“主要”选项卡并选择“重命名”。
我需要编写此过程的脚本,最好使用 vbscript。我知道我无法使用 Outlook.application 类更改功能区,但我也知道功能区本质上只是一个 XML 文件。我很乐意以编程方式更改 XML 文件。
我的问题是:
有没有更简单的方法?
如果没有,我如何找到功能区 xml 文件?
I have been asked to write a script to change the name of a 3rd party tab on all Outlook 2010 users' ribbons.
The manual process would be to go to File > Options > Customize Ribbon > Select the Main tab on the right and choose rename.
I need to script this process, preferably with vbscript. I understand that I cannot change the ribbon using the outlook.application class but I also understand the ribbon is at heart just an XML file. I'd be happy to programmatically alter the XML file.
My questions are:
Is there a simpler method?
If not, how do I find the ribbon xml file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
终于找到了如何做到这一点 - 事实证明,当手动自定义功能区选项卡时,它会在 AppData\Local/Roaming\Microsoft\Office 中创建一个名为 xxx.officeUI 的文件,其中 xxx 可以是许多不同的文件名之一。为了自定义 Outlook 中的主功能区,它被称为 olkexplorer.officeUI。
因此,我所要做的就是找到此自定义文件并创建一个 AD 登录脚本,根据用户是否具有漫游或本地配置文件,将其复制到正确的文件夹中...
有关更多信息... 查看此页面
Finally found out how to do this - it turns out that when the ribbon tab is customised manually it creates a file in AppData\Local/Roaming\Microsoft\Office called xxx.officeUI where xxx can be one of many different filenames. For customising the main ribbon in Outlook it is called olkexplorer.officeUI.
So all I had to do was find this customisation file and create an AD log in script that copies it into the correct folder depending on whether the user has a roaming or local profile...
For more info... check this page out