B
Ben Crinion
Hi
The following code works fine on several computers but is causing an "
ActiveX Component cannot create object " error on 1 machine.
'address dims
Dim objSession 'As MAPI.session
Dim session 'As session
Dim objAddressList 'As Redemption.AddressList
Dim objAddressEntries 'As Redemption.AddressEntries
'latch onto running session
'IT ERRORS HERE
Set objSession = CreateObject("MAPI.Session")
objSession.Logon ShowDialog:=False, NewSession:=False
'Get Global Address List
'Set objAddressList = outlook.Application.G(CdoAddressListGAL)
Set objAddressList = objSession.GetAddressList(CdoAddressListGAL)
The rest of the code in the function goes on to loop through the GAL
searching for contacts with a specified mobile phone number.
I cant understand why its not working, and so far i cant find anything on
the web to help.
Does anyone have a clue?
Thanks
Ben Crinion
The following code works fine on several computers but is causing an "
ActiveX Component cannot create object " error on 1 machine.
'address dims
Dim objSession 'As MAPI.session
Dim session 'As session
Dim objAddressList 'As Redemption.AddressList
Dim objAddressEntries 'As Redemption.AddressEntries
'latch onto running session
'IT ERRORS HERE
Set objSession = CreateObject("MAPI.Session")
objSession.Logon ShowDialog:=False, NewSession:=False
'Get Global Address List
'Set objAddressList = outlook.Application.G(CdoAddressListGAL)
Set objAddressList = objSession.GetAddressList(CdoAddressListGAL)
The rest of the code in the function goes on to loop through the GAL
searching for contacts with a specified mobile phone number.
I cant understand why its not working, and so far i cant find anything on
the web to help.
Does anyone have a clue?
Thanks
Ben Crinion