Thread: Folder Types
View Single Post
  #2  
Old June 8th 06, 10:12 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Folder Types

DefaultItemType returns the default type of item for a folder. You just have
to know how Outlook folders work, for example for EX public folders you get
olPostItem for mail folders. You could use DefaultMessageClass but that can
be changed by the user or by code.

DefaultItemType is the way to go.

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


"Dav Banks" wrote in message
...
Hi,
Is there a way to get the folder type from a MAPIFolder object? I'm
trying to write code to archive messages based on the received date but I
can't create the new folders in the target store because I can't get the
source folder type. I figure there must be a way to do this since the
Outlook autoarchive creates the appropriate folder types when it runs.
I've seen some things that suggest using the DefaultItemType some of the
mapping are a bit unclear. Like olFolderInbox and olFolderNotes for folder
types but olMailItem, olNoteItem or olPostItem as DefaultItemTypes. What
gives?

db


Ads