[英]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.