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 a contact programmatically



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 20th 07, 12:36 AM posted to microsoft.public.outlook.program_vba
naveed
external usenet poster
 
Posts: 4
Default Select a contact programmatically

I'm stumped on this seemingly trivial task. I want to select (focus) a
contact item.
How can I do this? Thanks in advance.
Ads
  #2  
Old February 20th 07, 07:14 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Select a contact programmatically



No way with Outlook object model.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Keep your Outlook categories organized!
http://www.shareit.com/product.html?...4&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Am Mon, 19 Feb 2007 15:36:00 -0800 schrieb naveed:

I'm stumped on this seemingly trivial task. I want to select (focus) a
contact item.
How can I do this? Thanks in advance.

  #3  
Old February 21st 07, 02:01 AM posted to microsoft.public.outlook.program_vba
naveed
external usenet poster
 
Posts: 4
Default Select a contact programmatically

I sort of solved the problem by using this crude approach, after making sure
the contacts folder is being displayed:

//[C# code]
SendKeys.Send(contact.FileAs);
  #4  
Old February 21st 07, 07:09 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Select a contact programmatically



Not 100% reliable but interesting.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Keep your Outlook categories organized!
http://www.shareit.com/product.html?...4&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Am Tue, 20 Feb 2007 17:01:12 -0800 schrieb naveed:

I sort of solved the problem by using this crude approach, after making

sure
the contacts folder is being displayed:

//[C# code]
SendKeys.Send(contact.FileAs);

 




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
Select a contact programmatically naveed Outlook - Using Contacts 2 February 21st 07 01:56 AM
Can't Select Contact Names for Email tdunne Outlook - Using Contacts 1 November 7th 06 08:22 PM
How to select the Internet account programmatically? James Outlook and VBA 1 October 30th 06 06:00 AM
programmatically (or otherwise) controling/editing the "Select Names" dialog box Conan Kelly Outlook - Using Forms 1 September 2nd 06 02:01 AM
how not to select a outside line when dialing from contact simonq Outlook - Using Contacts 1 March 31st 06 04:59 PM


All times are GMT +1. The time now is 12:45 AM.


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.