water 2,387 Posted July 19, 2010 Hi Outlook gurus out there! I use the following code snippet to resolve an Outlook recipient. If returns FALSE if there is more then one entry in the addressbook. Unfortunately Outlook 2003 doesn't provide the "GetSelectNamesDialog" method so that lets me offer the dialog to the user and let him decide which entry to process. Does anyone know a way to do this with Outlook 2003? $oRecip = $oDummy.Recipients.Add($sRecipient) $oRecip.Resolve If $oRecip.Resolved Then ; Recipient was resolved Else ; Could not resolve Recipient. Display selection dialog to the user Endif My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
evilertoaster 3 Posted July 19, 2010 To my knowledge, the exchange 2003 object model doesn't support that directly... Some ideas: -Using CDO, which allows for a dialog: http://msdn.microsoft.com/en-us/library/ms526712(v=EXCHG.10).aspx -Matching the recipients to a single entry via .CreateRecipient() with a "=" specified, like so: http://www.outlookbanter.com/322571-post4.html -Writing the .Resolve matching logic yourself, by getting a list of people from their address list and contacts, and then enumerating over each one to find their name, match that against your 'search' and build your own resolve GUI for conflicts. Share this post Link to post Share on other sites
water 2,387 Posted July 20, 2010 Hi evilertoaster, thanks for the suggestions! As soon as I find some spare time I'll have a look. If questions arise I will post again My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites