Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Outlook Contacts

Geek News

Outlook Contacts
"Dave" <KingOfTheBeach[ at ]community.nospam> 3/24/2006 10:26:19 PM
I don't know if anyone has experienced issues like the one I've experienced,
but with the advent of Outlook 2003, I have noticed that users have been
creating contact folders all over the place in outlook. Because of this,
I've had to write logic to recurse folders all over the place. Is there
anyway to get a Contacts Folders collection that contains the folders that
contain contacts in them ? or maybe somebody could help me with what they
think is the best way to find a contact item when you really don't know
where the contact object is ?

Dave



Re: Outlook Contacts
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 3/27/2006 3:53:33 PM
There's no magic GetContactFolders method, you just have to start at the top
of store and recurse each folder and subfolder, etc. and find all the
contacts folders wherever they've been created.

--
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


"Dave" <KingOfTheBeach[ at ]community.nospam> wrote in message
news:eGV6gH5TGHA.2800[ at ]TK2MSFTNGP10.phx.gbl...
[Quoted Text]
>I don't know if anyone has experienced issues like the one I've
>experienced,
> but with the advent of Outlook 2003, I have noticed that users have been
> creating contact folders all over the place in outlook. Because of this,
> I've had to write logic to recurse folders all over the place. Is there
> anyway to get a Contacts Folders collection that contains the folders that
> contain contacts in them ? or maybe somebody could help me with what they
> think is the best way to find a contact item when you really don't know
> where the contact object is ?
>
> Dave
>
>
>

Re: Outlook Contacts
"Dave" <KingOfTheBeach[ at ]community.nospam> 5/15/2006 4:13:43 PM
Is there any code samples available that demonstrate the recursing through
the folders and sub folders out on the web anywhere ?


"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> wrote in message
news:uJLgS9bUGHA.2416[ at ]TK2MSFTNGP12.phx.gbl...
[Quoted Text]
> There's no magic GetContactFolders method, you just have to start at the
top
> of store and recurse each folder and subfolder, etc. and find all the
> contacts folders wherever they've been created.
>
> --
> 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
>
>
> "Dave" <KingOfTheBeach[ at ]community.nospam> wrote in message
> news:eGV6gH5TGHA.2800[ at ]TK2MSFTNGP10.phx.gbl...
> >I don't know if anyone has experienced issues like the one I've
> >experienced,
> > but with the advent of Outlook 2003, I have noticed that users have been
> > creating contact folders all over the place in outlook. Because of
this,
> > I've had to write logic to recurse folders all over the place. Is there
> > anyway to get a Contacts Folders collection that contains the folders
that
> > contain contacts in them ? or maybe somebody could help me with what
they
> > think is the best way to find a contact item when you really don't know
> > where the contact object is ?
> >
> > Dave
> >
> >
> >
>


Re: Outlook Contacts
"Sue Mosher [MVP-Outlook]" <suemvp[ at ]outlookcode.com> 5/15/2006 4:35:30 PM
Here's a basic one: http://www.outlookcode.com/codedetail.aspx?id=628 You'll want to modify it to check the DefaultItemType property of each folder, so you can determine which are contacts folders.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Dave" <KingOfTheBeach[ at ]community.nospam> wrote in message news:OYSRIqDeGHA.564[ at ]TK2MSFTNGP02.phx.gbl...
[Quoted Text]
> Is there any code samples available that demonstrate the recursing through
> the folders and sub folders out on the web anywhere ?
>
>
> "Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> wrote in message
> news:uJLgS9bUGHA.2416[ at ]TK2MSFTNGP12.phx.gbl...
>> There's no magic GetContactFolders method, you just have to start at the
> top
>> of store and recurse each folder and subfolder, etc. and find all the
>> contacts folders wherever they've been created.
>>
>> --
>> 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
>>
>>
>> "Dave" <KingOfTheBeach[ at ]community.nospam> wrote in message
>> news:eGV6gH5TGHA.2800[ at ]TK2MSFTNGP10.phx.gbl...
>> >I don't know if anyone has experienced issues like the one I've
>> >experienced,
>> > but with the advent of Outlook 2003, I have noticed that users have been
>> > creating contact folders all over the place in outlook. Because of
> this,
>> > I've had to write logic to recurse folders all over the place. Is there
>> > anyway to get a Contacts Folders collection that contains the folders
> that
>> > contain contacts in them ? or maybe somebody could help me with what
> they
>> > think is the best way to find a contact item when you really don't know
>> > where the contact object is ?
>> >
>> > Dave
>> >
>> >
>> >
>>
>
>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net