How to create new task item?

  • Thread starter Sue Mosher [MVP]
  • 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
 
K

KP

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top