简体   繁体   English

将邮件对象从Outlook传递到Excel

[英]Passing mail object from Outlook to Excel

I have a macro in Outlook 2010 that is triggered by a specific string in the subject line. 我在Outlook 2010中有一个由主题行中的特定字符串触发的宏。 It then opens an instance of Excel and a workbook and runs a macro. 然后,它打开一个Excel实例和一个工作簿并运行一个宏。 Everything runs okay, except I want to pass the mail object from Outlook to Excel and work with it there. 一切正常,除了我要将邮件对象从Outlook传递到Excel并在其中使用。 I want to keep the Outlook macros small and tidy and let Excel do the work since that's where the data is headed anyway. 我想使Outlook宏小而整洁,并让Excel进行工作,因为无论如何这都是数据的前进方向。

I've passed objects between subs within Excel, but can't seem to do it between applications. 我已经在Excel中的子对象之间传递了对象,但似乎无法在应用程序之间实现对象。 Thanks. 谢谢。

为什么不创建一个Excel应用程序,先将其命名为xlApp,然后再命名为xlApp.Run以在已保存的工作簿上运行该宏?

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

相关问题 将参数从Outlook传递到Excel - Passing parameters from Outlook to Excel 从Excel提取Outlook 2007邮件信息到Excel-文件夹/主题 - Extracting Outlook 2007 mail information to Excel from Excel - folder/subject 从Excel打开Word文档,然后将内容粘贴到Outlook邮件正文中 - Open a Word document from Excel and paste the contents to body of Outlook mail 从Excel复制多列以保持格式,将其保留到Outlook邮件 - Copy multiple columns, keeping formatting, from Excel to Outlook mail VBA在Outlook中通过电子邮件打开Excel - VBA open excel from e-mail in outlook 如何从电子邮件(Outlook)提取内容到Excel表? - How to extract content from an E-Mail (Outlook) to an excel table? Outlook 2010规则是否对从Excel VBA发送的邮件运行? - Do Outlook 2010 rules run on mail sent from Excel VBA? 如何仅从excel复制未隐藏的行并通过Outlook发送邮件 - how to copy only unhidden rows from an excel and mail via outlook 如何从Excel VBA中的其他邮件中过滤今天收到的Outlook邮件 - How to filter Outlook mail items received by today from other mail items in Excel VBA excel-vba:将文本从具有特定格式的单元格转换为适合Outlook电子邮件正文的对象,同时保持相同的格式属性 - excel-vba: Turn text from cells with particular format into an object suitable for outlook e-mail body, while maintaining the same format properties
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM