错误:在Windows 11上晚期绑定到新的Outlook。

huangapple go评论62阅读模式
英文:

Error Late Binding to New Outlook on Windows 11

问题

我已经使用相同的Excel VBA代码进行Outlook迟绑定相当长一段时间了。

今天,当我的Outlook决定“尝试”新的Outlook时,Excel无法检测Outlook应用程序或创建它。

我一直在使用的代码如下。

其他人是否遇到过这个错误并能够找到解决方法?
我所有的Google搜索和Microsoft白皮书都没有找到成功的匹配。

英文:

I have been using the same Excel VBA code for Outlook Late Binding for quite some time.

Today while my Outlook decided to "Try" the New Outlook, Excel was unable to detect the Outlook App or create it.

错误:在Windows 11上晚期绑定到新的Outlook。

The code I have been using is listed below.

Has anyone else encountered this error and was able to find a workaround?
All of my Google searches and Microsoft White pages have returned zero successful matches.

Code

On Error Resume Next
Set OutApp = GetObject(, "Outlook.Application")
On Error GoTo 0
If OutApp Is Nothing Then
    ' try to create an Outlook instance
    Set OutApp = CreateObject("Outlook.Application")
    
    OutlookIsOpen = False
    Exit Sub
End If

答案1

得分: 2

新的Outlook(项目Monarch)不提供任何COM接口。这是一个轻量级的基于Web的应用程序,不支持自动化。唯一可能扩展此类应用程序的方式是使用Web加载项,请参阅Outlook加载项文档获取更多信息。

英文:

The new Outlook (project Monarch) doesn't provide any COM interfaces. That is a lightweight web-based application which doesn't support automation. The only possible way to extend such applications is by using web add-ins, see Outlook add-ins documentation for more information.

答案2

得分: 1

新版的Outlook没有类似于Outlook对象模型的API。Web插件(JS)是与其进行程序化交互的唯一方式。

英文:

The new Outlook does not have an API similar to the Outlook Object Model. Web addins (JS) is the only way to interact with it programmatically.

huangapple
  • 本文由 发表于 2023年6月8日 04:25:26
  • 转载请务必保留本文链接:https://go.coder-hub.com/76426885.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定