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

Select Names Dialog Box



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 5th 10, 08:52 PM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 10
Default Select Names Dialog Box

Could someone help with the following?

I am using Access 2003 with outlook 2003 and all I need to do is open
outlook and for it to display the Select Names Dialog Box ( it would be nice
to open outlook if it was closed) no more than that. Hence I am now after
the code to go in the click event of the button.

Any examples of VBA code that will work within Access 2003 would be
appreciated
Ads
  #2  
Old February 8th 10, 02:53 PM posted to microsoft.public.outlook.program_vba
JP[_3_]
external usenet poster
 
Posts: 201
Default Select Names Dialog Box

The Select Names dialog box is programmable starting from Outlook
2007. You can't display it in Outlook 2003.

http://msdn.microsoft.com/en-us/library/bb176400.aspx

--JP

On Feb 5, 3:52*pm, wrote:
Could someone help with the following?

I am using Access 2003 with outlook 2003 and all I need to do is open
outlook and for it to display the Select Names Dialog Box ( it would be nice
to open outlook if it was closed) no more than that. Hence I am now after
the code to go in the click event of the button.

Any examples of VBA code that will work *within Access 2003 would be
appreciated


  #3  
Old February 9th 10, 05:32 PM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 10
Default Select Names Dialog Box

Thank you Jp for the info.
In view of your reply, I have seen code being used (VB) for the display of
the address book.
Have you used or knowledge of any outlook VBA address book code examples?

I will post a message in this group on this subject.

Thank you again
  #4  
Old February 10th 10, 02:54 PM posted to microsoft.public.outlook.program_vba
JP[_3_]
external usenet poster
 
Posts: 201
Default Select Names Dialog Box

I don't doubt that you've seen code that displays the address book,
but Outlook doesn't provide any means of doing so prior to Outlook
2007. I have seen (and used) VBA code that manipulates contacts, but
not in the way you want. If you can show otherwise, I'd be glad to see
it.

--JP

On Feb 9, 12:32*pm, wrote:
Thank you Jp for the info.
In view of your reply, I have seen code being used (VB) for the display of
the address book.
Have you used or knowledge of any outlook VBA address book code examples?

I will post a message in this group on this subject.

Thank you again

  #5  
Old February 10th 10, 06:21 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Select Names Dialog Box

Of course in the old days we used to use CDO.Session.AddressBook() to
display that dialog before the OOM exposed it.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"JP" wrote in message
...
I don't doubt that you've seen code that displays the address book,
but Outlook doesn't provide any means of doing so prior to Outlook
2007. I have seen (and used) VBA code that manipulates contacts, but
not in the way you want. If you can show otherwise, I'd be glad to see
it.

--JP

On Feb 9, 12:32 pm, wrote:
Thank you Jp for the info.
In view of your reply, I have seen code being used (VB) for the display of
the address book.
Have you used or knowledge of any outlook VBA address book code examples?

I will post a message in this group on this subject.

Thank you again


  #6  
Old February 10th 10, 08:44 PM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 10
Default Select Names Dialog Box

Hi ,all

I came across the example of using the address book in this
http://www.codeguru.com/forum/showthread.php?t=370829 and hoped to get this
working some how.
  #7  
Old February 11th 10, 02:49 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Select Names Dialog Box

That is what I was talking about with the CDO method.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


wrote in message
...
Hi ,all

I came across the example of using the address book in this
http://www.codeguru.com/forum/showthread.php?t=370829 and hoped to get
this
working some how.


  #8  
Old February 11th 10, 04:27 PM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 10
Default Select Names Dialog Box

Hi, Ken
Is it possible to get the example working in the environment I need?
If so your help would be appreciated
Regards
Dave
  #9  
Old February 11th 10, 05:56 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Select Names Dialog Box

That thread you referenced has code for that.

CDO is an optional installation for Office 2003 and earlier so you may not
have it installed, you have to check that. CDO also is subject to very
strict security, even stricter than the Outlook object model, so you also
have to be aware of that. Most of us stopped using CDO years ago because of
that, that's one of the reasons that Redemption (www.dimastr.com/redemption)
was created.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


wrote in message
...
Hi, Ken
Is it possible to get the example working in the environment I need?
If so your help would be appreciated
Regards
Dave


  #10  
Old February 12th 10, 06:19 PM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 10
Default Select Names Dialog Box

Hi, Ken
I am using the following code that basicly works, other than if outlook is
closed.
hence what code is required to open outlook if it is closed?
It also looks like .AddressBook has a number of options. Could you list or
point me to more information on the use of this command.

On Error GoTo err_Session_AddressBook
'MAPI Session
Dim objSession As MAPI.Session
Dim colCDORecips As Object

Set objSession = New MAPI.Session
'objSession.Logon "ProfileName", "outlook", False, False
objSession.Logon , , False, False
'show address book
Set colCDORecips = objSession.AddressBook(, _
"Pick Names", , , 1, _
"Recipients")
' release objects
objSession.Logoff

Set colCDORecips = Nothing
Set objSession = Nothing


err_Session_AddressBook:
If (Err = 91) Then ' MAPI dlg-related function that sets an object
MsgBox "No recipients selected"
Else
'MsgBox "Unrecoverable Error:" & Err
End If

Thank you

Dave
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Outlook [To] List (aka Select Names) Dialog Master Blaster Outlook - General Queries 2 November 13th 08 08:21 AM
Select Names dialog box shows fax numbers Tara at Walsh Outlook - Using Contacts 1 January 30th 08 08:33 PM
select names dialog box. harkworkinman Outlook - Using Contacts 3 December 6th 06 10:10 AM
Showing the 'Select Names' (recipients) dialog Mr. Smith Outlook and VBA 1 December 1st 06 03:31 PM
Select names dialog box (again) Zoranst Outlook - Using Contacts 5 September 13th 06 10:29 PM


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.