【发布时间】:2018-08-17 10:19:31
【问题描述】:
我正在尝试从 excel 宏调用存储在 ThisOutlookSession 中的公共宏。前景随时开放。
我发现了以下内容: Call outlook VBA from Excel
我的excel代码:
Set myOutlookApp = GetObject(, "Outlook.Application")
If Not myOutlookApp Is Nothing Then myOutlookApp.ReadEmails
在第二行我得到一个错误:
运行时错误“438”:对象不支持此属性或方法
非常感谢您的帮助。
【问题讨论】:
-
您是否尝试过公开子程序“ReadMails”?
-
@bub 是的,我在上面提到它是公开的