开发者

Microsoft Outlook interop throws COMException (0x84130003)

开发者 https://www.devze.com 2022-12-24 10:57 出处:网络
I can\'t seem to find a thing on what this exception code indicates on Google or MSDN, and it\'s occurring intermittently and without a pattern I can discern. Has anyone run across this before? The fa

I can't seem to find a thing on what this exception code indicates on Google or MSDN, and it's occurring intermittently and without a pattern I can discern. Has anyone run across this before? The failure seems to occur on the final line here:

Dim olApp As New Outlook.Application
Dim olNS As Outlook.NameSpace = olApp.GetNamespace("MAPI")
Dim olMail As Outlook.MailItem = olApp.CreateItem(Outlook.O开发者_C百科lItemType.olMailItem)

Any help would be appreciated.


Looks like you haven't created your olApp object.

Set olApp = CreateObject("Outlook.Application")

This link should help you out: http://support.microsoft.com/kb/220595

0

精彩评论

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

关注公众号