![]() |
| If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|||||||
| Tags: dialog, names, recipients, select, showing |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi All, I'm actually automating emails from within Access but it is Outlook objects I'm working with. How, in code, do I get the dialog to display that appears when you click the "To:" button in a new email? IE: MyMail.recipients = ShowTheSelectNamesDialog() where when "ShowTheSelectNamesDialog()" (a fictional function I made up) executes, the code execution pauses until the user has selected the recips, CC's etc (MyMail is a MailItem objectBTW) and the user's selection is returned. Anyone know what I'm on about? Cheers, Mr. Smith |
| Ads |
|
#2
|
|||
|
|||
|
What you want is the AddressBook dialog. Calling it from the Outlook object
model was only added in Outlook 2007 as the NameSpace.GetSelectNamesDialog() method. In versions of Outlook prior to Outlook 2007 you would have to use Extended MAPI (C++ or Delphi only) CDO 1.21 (Session.AddressBook) or Redemption (3rd party library at www.dimastr.com/redemption) to display that dialog. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Mr. Smith" wrote in message ... Hi All, I'm actually automating emails from within Access but it is Outlook objects I'm working with. How, in code, do I get the dialog to display that appears when you click the "To:" button in a new email? IE: MyMail.recipients = ShowTheSelectNamesDialog() where when "ShowTheSelectNamesDialog()" (a fictional function I made up) executes, the code execution pauses until the user has selected the recips, CC's etc (MyMail is a MailItem objectBTW) and the user's selection is returned. Anyone know what I'm on about? Cheers, Mr. Smith |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| changing columns in the select names dialog box | J Miller | Outlook - General Queries | 4 | October 27th 06 11:42 PM |
| Select names dialog box (again) | Zoranst | Outlook - Using Contacts | 5 | September 13th 06 10:29 PM |
| programmatically (or otherwise) controling/editing the "Select Names" dialog box | Conan Kelly | Outlook - Using Forms | 1 | September 2nd 06 01:01 AM |
| Public Folder Address book not showing up under "Select Names From: dropdown | Jim | Outlook - Using Contacts | 1 | April 24th 06 10:17 PM |
| Group contacts by categories in Select Names dialog of Outlook | André | Outlook - Using Contacts | 1 | January 24th 06 03:01 AM |