+ Reply to Thread
Results 1 to 4 of 4

How to create a task group folder using VBA?

  1. #1
    Registered User
    Join Date
    09-30-2008
    Location
    TILBURG
    Posts
    3

    How to create a task group folder using VBA?

    Hi,

    I want to create a new task group folder in Outlook using VBA from Excel.

    I'm able to create subfolders within the 'My Tasks' group, however I want to add a new group at the same level as My Tasks....

    Code:
    Please Login or Register  to view this content.
    When I use the .Parent property in the GetDefaultFolder, the new folder is added in the InboxFolder....

    What do I have to do to get this added in as a new Task Group Folder?

    Thanks,
    Last edited by Fotis1991; 09-26-2014 at 05:18 AM. Reason: Pls use code tags around your codes.

  2. #2
    Forum Contributor
    Join Date
    08-27-2006
    Posts
    136

    Re: How to create a task group folder using VBA?

    Folders.Add has an optional Type parameter.

    http://msdn.microsoft.com/en-us/libr...ice.14%29.aspx

    expression .Add(Name, Type)

    Type: 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 OlDefaultFolders constants: olFolderCalendar, olFolderContacts, olFolderDrafts, olFolderInbox, olFolderJournal, olFolderNotes, or olFolderTasks. The constants olFolderConflicts, olFolderDeletedItems, olFolderJunk, olFolderLocalFailures, olFolderManagedEmail, olFolderOutbox, olFolderRssSubscriptions, olFolderSentMail, olFolderServerFailures, olFolderSyncIssues, olFolderToDo, and olPublicFoldersAllPublicFolders cannot be specified for this argument."
    To mark "Solved" go to Thread Tools.

  3. #3
    Registered User
    Join Date
    06-15-2007
    Posts
    9

    Re: How to create a task group folder using VBA?

    Skatonni, I don;t think that;s what is being asked here.

    I also am trying to solve a similar problem. How do you use VBA to create a new task folder in a specific GROUP. NB, this is different to creating a new task folder in a specific folder.

    Exopad wants to create a new group, I want to create a folder inside a group. Either way, what is the VBA language required to handle groups? So far all I have found online is about setting up new folders in specific folders (e.g. olFolderTasks). Does anyone know the answer to this?

  4. #4
    Forum Contributor
    Join Date
    08-27-2006
    Posts
    136

    Re: How to create a task group folder using VBA?

    Appears the question is about the Navigation pane. https://msdn.microsoft.com/en-us/lib.../ff864204.aspx If so and you post code I might learn something.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 04-15-2014, 03:23 AM
  2. Is there a way to create a start task with task id 0
    By Love Excel in forum Excel General
    Replies: 0
    Last Post: 06-21-2009, 08:38 PM
  3. create new task folder in outlook
    By Josh_123456 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-23-2007, 02:22 AM
  4. Replies: 6
    Last Post: 08-11-2006, 03:41 PM
  5. Unable to close excel as a group from the task bar
    By Paul Wintermeyer in forum Excel General
    Replies: 1
    Last Post: 10-07-2005, 11:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1