开发者

Open Outlook Macro With Excel VBA? [duplicate]

开发者 https://www.devze.com 2023-03-24 20:09 出处:网络
This question already has answers here: Closed 10 years ago. Possible Duplicate: Call outlook VBA from Excel
This question already has answers here: Closed 10 years ago.

Possible Duplicate:

Call outlook VBA from Excel

I know about the Application.Run method from Excel, with which I can open an E开发者_运维百科xcel macro from Outlook.

I need to switch the Excel.Application object to Outlook.Application and it doesn't work.

The error message is: "Method is not supported."


According to this thread, the only way to do this is to call a procedure stored in ThisOutlookSession:

Set myOlApp = CreateObject("Outlook.Application")
myOlApp.MyProcedure

However, this seems unsupported by MS.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号