如何使用 VBA 在 Outlook 2007 中的超链接菜单中添加新项目?
我需要向 Outlook 2007 中的超链接菜单添加新项目(现在它包含“复制”、“选择超链接”、“打开超链接”、“复制超链接”、“谁是”等项目)。
我该怎么做呢? (它应该是添加到 Outlook 的 VBA 宏)
I need to add new item to the hyperlink menu in Outlook 2007 (now it contains items like Copy, Select Hyperlink, Open Hyperlink, Copy Hyperlink, Who is).
How can I do it?
(it should be a VBA macro added to Outlook)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
看来VBA 没有办法做同样的事情。连MS也没有答案。
Looks like there is no way to do the same with VBA. Even MS doesn't have an answer.
有关 Outlook 和 CommandBar 对象的权威文章位于此处。
您可以在 Excel 中运行本文末尾的代码来获取所有 CommandBar 对象的列表,如下所示。请注意,您必须在 VBA 的参考中拥有 Outlook 库才能运行它: 对
您有帮助的输出摘录如下:
因此,您可以像这样访问它:
注意: I只能在 Outlook 2010 中进行测试。
The definitive article on Outlook and CommandBar objects is here.
The code at the end of the article that you can run in Excel to get a listing of all the CommandBar objects is following. Note that you have to have the Outlook Library in the References in VBA to get this to run:
The excerpt of the output that will help you is:
So you'd access it something like:
Note: I was only able to test things in Outlook 2010.
查看http://msdn.microsoft.com/ en-us/library/bb206754(v=office.12).aspx ?
looked at http://msdn.microsoft.com/en-us/library/bb206754(v=office.12).aspx ?
抱歉,我没有给您明确的答案,但希望我能为您指出正确的方向。
希望这个论坛有用,看起来他们在那里做同样的事情(尽管菜单不同)。
如果您需要一些基础知识帮助,这里有两个 MSDN 博客,一般讨论 Outlook 和 VBA 宏:
http:// /blogs.msdn.com/b/synergist/archive/2007/05/23/adding-a-vba-macro-to-outlook.aspx
希望这有帮助!
Sorry I don't have a definite answer for you, but hopefully I can point you in the right direction.
This forum will hopefully be useful, it looks like they're doing the same thing there (albeit with a different menu).
And if you need some basics help, here are two MSDN blogs talking about Outlook and VBA macros in general:
http://blogs.msdn.com/b/synergist/archive/2007/05/23/adding-a-vba-macro-to-outlook.aspx
http://blogs.msdn.com/b/swiss_dpe_team/archive/2007/12/11/office-2007-outlook2007-macros-vba-how-to-work-better-with-categories.aspx
Hope this helps!