简体   繁体   English

从 Excel 发送邮件时运行 Outlook 宏

[英]Run Outlook Macro when sending mail from Excel

I have a VBA code in Thisoutlooksession that runs when new mail is sent.我在 Thisoutlooksession 中有一个 VBA 代码,它在发送新邮件时运行。 But when I send a mail using Excel biltin option to send the file attached, the code in the outlook don't run.但是,当我使用 Excel biltin 选项发送邮件以发送附加文件时,Outlook 中的代码不会运行。 Would appreciate youre help.将不胜感激您的帮助。

在此处输入图片说明

Thanks in advance.提前致谢。

This is a situation where some Outlook functionality is not applied.这是一种未应用某些 Outlook 功能的情况。

"You use Send As or other Send commands from another Microsoft Office application, such as Microsoft Word, Microsoft Excel, or Microsoft PowerPoint. This scenario typically occurs when you use a command to send the current file as an attachment." “您使用来自另一个 Microsoft Office 应用程序(例如 Microsoft Word、Microsoft Excel 或 Microsoft PowerPoint)的发送为或其他发送命令。当您使用命令将当前文件作为附件发送时,通常会发生这种情况。” Messages that are created outside Outlook do not include the default Outlook email signature 在 Outlook 外部创建的邮件不包括默认的 Outlook 电子邮件签名

"If you need all features to be available, you either need to create the email from Outlook itself or create the new email programmatically from within that other application as well." “如果您需要所有功能都可用,您要么需要从 Outlook 本身创建电子邮件,要么也需要从其他应用程序中以编程方式创建新电子邮件。” Outlook UserForms dont work when emailing from another application 从其他应用程序发送电子邮件时 Outlook 用户窗体不起作用

"This is by design: messages created and sent by Simple MAPI or mailto url do not trigger OOM events. This is done on purpose - there were some problems in those scenarios, so events were completely disabled." “这是设计使然:由 Simple MAPI 或 mailto url 创建和发送的消息不会触发 OOM 事件。这是故意完成的 - 在这些场景中存在一些问题,因此事件被完全禁用。” ItemSend event is not firing ItemSend 事件未触发

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

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