Outlook 2003 Automation Error calling GetNameSpace("Mapi")

R

Rick H

I wrote a calendar ocx that retrieves all items from outlook for today
into a list box. I place the ocx on a window in our powerbuilder
application and all works fine 99% of the time. I have 2 clients that
keep getting the error "Automation Errors" Specified Module could not
be found.
This is Outlook 2003 SP1 on Windows XP SP1
Here is the line causing the error:

Dim objOutlook As New Outlook.Application
Dim objNS As NameSpace
Private Sub UserControl_Initialize()
MsgBox "Step1"
Set objNS = objOutlook.GetNamespace("MAPI") 'Errors here

I have tried everything I could think of. CDO, Detect and repair, even
uninstalled and reinstalled outllok. Any Ideas??????

Thanks , Rick H
 
Top