How to create new task item?

  • Thread starter Thread starter Sue Mosher [MVP]
  • Start date Start date
S

Sue Mosher [MVP]

To create an item in a non-default folder, use the Add method on the target folder's Items collection:

Set objTask = MyNewFolder.Items.Add

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
Set myTaskFolder = oNS.GetDefaultFolder(olFolderInbox)
Set rootfolder = myTaskFolder.Parent
Set MyNewFolder = rootfolder.Folders.Add("Projects")

i need to create an task item which need to be place below "Projects"
Folder

thanks
KP
 
Back
Top