blueben
04-13-2011, 07:36 AM
Hi,
As part of a user form I've deisgned, I have some code which allows users to select a recipient from the Global Address book and have specific details saved to a text box (see relevant part below).
Unfortunately this is only working on selected machines. It is fine on some but others the 'Set recipients' part is simply skipped with no error message to determine why. I understand that this is due an issue of the CDO object no longer being supported - however I designed the tool in Outlook 2010 and all my users (both those that work and those that don't) have 2007.
Does anyone have any idea how to resolve this; or if not how I can achieve the same using the Outlook 2010 object model.
Thank you
Set appOutlook = CreateObject("Outlook.Application")
Set CDOSession = appOutlook.CreateObject("MAPI.Session")
CDOSession.Logon "", "", False, False, 0
Set Recipients = CDOSession.addressbook(Nothing, "Select Employee", False, True, 1, "To:", "", "", 0)
As part of a user form I've deisgned, I have some code which allows users to select a recipient from the Global Address book and have specific details saved to a text box (see relevant part below).
Unfortunately this is only working on selected machines. It is fine on some but others the 'Set recipients' part is simply skipped with no error message to determine why. I understand that this is due an issue of the CDO object no longer being supported - however I designed the tool in Outlook 2010 and all my users (both those that work and those that don't) have 2007.
Does anyone have any idea how to resolve this; or if not how I can achieve the same using the Outlook 2010 object model.
Thank you
Set appOutlook = CreateObject("Outlook.Application")
Set CDOSession = appOutlook.CreateObject("MAPI.Session")
CDOSession.Logon "", "", False, False, 0
Set Recipients = CDOSession.addressbook(Nothing, "Select Employee", False, True, 1, "To:", "", "", 0)