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

Detecting the type of items for a folder





 
 
Thread Tools Display Modes
  #1  
Old November 5th 07, 04:00 PM posted to microsoft.public.outlook.program_vba
dch3
external usenet poster
 
Posts: 105
Default Detecting the type of items for a folder

When a new folder is setup there's a prompt asking for the type of items that
will generally be stored in it. Is there a way to retrieve this using VBA?
Ads
  #2  
Old November 5th 07, 05:11 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 817
Default Detecting the type of items for a folder

There sure is - MAPIFolder.DefaultItemType.

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"dch3" wrote:

When a new folder is setup there's a prompt asking for the type of items that
will generally be stored in it. Is there a way to retrieve this using VBA?

  #3  
Old November 5th 07, 05:12 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Detecting the type of items for a folder

Take a look at the MAPIFolder.DefaultItemType property (Folder in Outlook 2007).

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"dch3" wrote in message ...
When a new folder is setup there's a prompt asking for the type of items that
will generally be stored in it. Is there a way to retrieve this using VBA?

  #4  
Old November 5th 07, 05:23 PM posted to microsoft.public.outlook.program_vba
dch3
external usenet poster
 
Posts: 105
Default Detecting the type of items for a folder

Thx. For my folder home page that uses the OVC, I'm entertaining the idea of
providing my users with a comboBox that allows them to change the folder
being displayed from their Inbox to any one of a list of folders containing
MailItems using a comboBox. I'm still debating it since the folders can be
nested and can across different stores (correct term?).
"Eric Legault [MVP - Outlook]" wrote:

There sure is - MAPIFolder.DefaultItemType.

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"dch3" wrote:

When a new folder is setup there's a prompt asking for the type of items that
will generally be stored in it. Is there a way to retrieve this using VBA?

  #5  
Old November 5th 07, 06:01 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 817
Default Detecting the type of items for a folder

Yes, your terminology is correct. Folders can be created in different stores
- whether they are .psts or Exchange Mailboxes.

If you are using Oultook 2003 or greater, you may want to turn your users on
to Search Folders. They are excellent for viewing items from many different
folders in one spot.

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"dch3" wrote:

Thx. For my folder home page that uses the OVC, I'm entertaining the idea of
providing my users with a comboBox that allows them to change the folder
being displayed from their Inbox to any one of a list of folders containing
MailItems using a comboBox. I'm still debating it since the folders can be
nested and can across different stores (correct term?).
"Eric Legault [MVP - Outlook]" wrote:

There sure is - MAPIFolder.DefaultItemType.

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"dch3" wrote:

When a new folder is setup there's a prompt asking for the type of items that
will generally be stored in it. Is there a way to retrieve this using VBA?

  #6  
Old November 5th 07, 06:11 PM posted to microsoft.public.outlook.program_vba
dch3
external usenet poster
 
Posts: 105
Default Detecting the type of items for a folder

Thank you for that. I haven't played with Search Folders until just now and
really like the idea of doing that pulls all messages (MesageClass contains
IPM.NOTE) and then grouping by the In Folder field.

"Eric Legault [MVP - Outlook]" wrote:

Yes, your terminology is correct. Folders can be created in different stores
- whether they are .psts or Exchange Mailboxes.

If you are using Oultook 2003 or greater, you may want to turn your users on
to Search Folders. They are excellent for viewing items from many different
folders in one spot.

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"dch3" wrote:

Thx. For my folder home page that uses the OVC, I'm entertaining the idea of
providing my users with a comboBox that allows them to change the folder
being displayed from their Inbox to any one of a list of folders containing
MailItems using a comboBox. I'm still debating it since the folders can be
nested and can across different stores (correct term?).
"Eric Legault [MVP - Outlook]" wrote:

There sure is - MAPIFolder.DefaultItemType.

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"dch3" wrote:

When a new folder is setup there's a prompt asking for the type of items that
will generally be stored in it. Is there a way to retrieve this using VBA?

 




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
Detecting the .ActiveWindow() w/C# Vic[_2_] Outlook - General Queries 1 October 24th 07 08:21 PM
Detecting when Appointment Occurs mwernerps2 via OfficeKB.com Add-ins for Outlook 1 October 21st 07 12:29 AM
how to retain 10 days items in Outlook 2003 deleted items folder? Balthazar Outlook - Installation 2 June 7th 06 05:05 PM
Reading mails from Sent items, Deleted items, Draft folder of outlook from VB6.0 Viswanathan Outlook - General Queries 8 May 26th 06 05:31 PM
Why do I get a type mismatch when trying to access mail items? Pete Dawson (Leeds Uni) Outlook and VBA 3 March 3rd 06 02:16 PM


All times are GMT +1. The time now is 06:04 AM.


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.
Baby Shower Poem - Adverse Credit Remortgage - Mortgages - Mortgages - Buy Anything On eBay