Create a task in sub-folder of the main Tasks folder

D

David

Hello,
I am using outlookXP/VBA to create a task in a sub-folder under the main Tasks folder.

How can i create it directly there without creating it in the main Tasks and then moving it.

thanks
David
 
K

Ken Slovak - [MVP - Outlook]

Get the folder as a MAPIFolder object and then its Items collection. Then use the Add method for the Items collection.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm


Hello,
I am using outlookXP/VBA to create a task in a sub-folder under the main Tasks folder.

How can i create it directly there without creating it in the main Tasks and then moving it.

thanks
David
 

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