Share via


Add Method (Folders Collection)

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

                 

Creates a new folder in the Folders, and returns the new folder as a MAPIFolder object.

Syntax

objFolders**.Add(Name**, [Type])

objFolders   Required. An expression that returns a Folders object.

Name   Required String. The display name for the new folder.

Type   Optional Long. The Outlook folder type for the new folder. If the folder type is not specified, the new folder will default to the same type as the folder in which it is created. Can be one of the following OlDefaultFoldersconstants: olFolderCalendar(9), olFolderContacts(10), olFolderDrafts(16), olFolderInbox(6), olFolderJournal(11), olFolderNotes(12), or olFolderTasks(13). (The constants olFolderDeletedItems(3), olFolderOutbox(6), and olFolderSentMail(5) cannot be specified for this argument.)