A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , , ,

Showing the 'Select Names' (recipients) dialog





 
 
Thread Tools Display Modes
  #1  
Old December 1st 06, 01:09 AM posted to microsoft.public.outlook.program_vba
Mr. Smith
external usenet poster
 
Posts: 1
Default Showing the 'Select Names' (recipients) dialog


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  
Old December 1st 06, 03:31 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 3,086
Default Showing the 'Select Names' (recipients) dialog

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 07:13 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Debt Help - Linux articles - Cash Advance - Mortgages - Manual directory submissions