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

Folder Types



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 8th 06, 10:02 PM posted to microsoft.public.outlook.program_vba
Dav Banks
external usenet poster
 
Posts: 6
Default Folder Types

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


 




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
How do I only share certain types of event simonproctor Outlook - Calandaring 0 May 14th 06 05:35 PM
Unspecific types of emails cause Outlook to Crash AJ Outlook - General Queries 0 April 30th 06 02:25 AM
Create a search folder to look at all emails in one folder and selected criteria in other folders [email protected] Outlook - General Queries 1 April 10th 06 09:40 AM
Junk E-mail folder - is there a way to create a rule to delete items in this folder older than X days? Jaycee Outlook - General Queries 1 February 22nd 06 04:54 PM
How do I change or add an "Entry Types" in journal entrys MGS Outlook - General Queries 2 January 22nd 06 12:14 AM


All times are GMT +1. The time now is 12:20 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.