Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Interop / October 2003

Tip: Looking for answers? Try searching our database.

How to create new task item?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
KP - 27 Oct 2003 12:36 GMT
   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
Sue Mosher [MVP] - 03 Oct 2003 23:28 GMT
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

Signature

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
    http://www.outlookcode.com/jumpstart.aspx 

>     Set myTaskFolder = oNS.GetDefaultFolder(olFolderInbox)
>     Set rootfolder = myTaskFolder.Parent
[quoted text clipped - 5 lines]
> thanks
> KP
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.