D
Dave
Anyone
When trying to create the Outlook Object model from within a VB application
I get Runtime error 80004005 Creating Outlook.Application object. The PC is
running Windows XP Home with Outlook 2003. I've tried messing around with
internet security settings, I tried the Sue Mosher suggestion of looking for
script blocking and turning it off. I have turned off firewalls pretty much
everything I can think off. Anyone have any other ideas ?
Dave
Code will throw the error on either the New Outlook.Application or
CreateObject("Outlook.Application")
On Error Resume Next
Set g_oe = New Outlook.Application
If (err.Number <> 0) Then
err.Clear
Set g_oe = Nothing
Set g_ol = CreateObject("Outlook.Application", "localhost")
If (err.Number <> 0) Then
err.Clear
Set g_ol = Nothing
Exit Sub
End If
Set g_ns = g_ol.GetNamespace("MAPI")
Else
Logit "frmContacts - Done Loading Outlook Object"
Set g_ns = g_oe.GetNamespace("MAPI")
End If
Set g_fldr = g_ns.GetDefaultFolder(olFolderContacts)
When trying to create the Outlook Object model from within a VB application
I get Runtime error 80004005 Creating Outlook.Application object. The PC is
running Windows XP Home with Outlook 2003. I've tried messing around with
internet security settings, I tried the Sue Mosher suggestion of looking for
script blocking and turning it off. I have turned off firewalls pretty much
everything I can think off. Anyone have any other ideas ?
Dave
Code will throw the error on either the New Outlook.Application or
CreateObject("Outlook.Application")
On Error Resume Next
Set g_oe = New Outlook.Application
If (err.Number <> 0) Then
err.Clear
Set g_oe = Nothing
Set g_ol = CreateObject("Outlook.Application", "localhost")
If (err.Number <> 0) Then
err.Clear
Set g_ol = Nothing
Exit Sub
End If
Set g_ns = g_ol.GetNamespace("MAPI")
Else
Logit "frmContacts - Done Loading Outlook Object"
Set g_ns = g_oe.GetNamespace("MAPI")
End If
Set g_fldr = g_ns.GetDefaultFolder(olFolderContacts)