+ Reply to Thread
Results 1 to 11 of 11

Macro For folder Creation In Outlook 2007

  1. #1
    Forum Contributor nuttycongo123's Avatar
    Join Date
    01-26-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    149

    Thumbs up Macro For folder Creation In Outlook 2007

    Dear All,
    I need help with the following ..I want to have a Macro which can creat folders in outlook 2007 using the List in Excel 2007 as a master sheet..Attached is the worksheet detailing the request ..I have not worked on this as I am not sure about the possibility so there are no macros in the attached sheet ..
    N
    Attached Files Attached Files
    Last edited by nuttycongo123; 03-06-2011 at 03:38 AM.

  2. #2
    Forum Contributor nuttycongo123's Avatar
    Join Date
    01-26-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: Macro For folder Creation In Outlook 2007

    I guess the code is
    Please Login or Register  to view this content.
    any suggestions
    Regards
    N

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Macro For folder Creation In Outlook 2007

    Hi Nutty

    Try the code in the attached. It works for me. If you want colors, you'll need to have someone else involved. I'm colorblind.

    All code from
    http://www.codeforexcelandoutlook.co...ly-in-outlook/

    I forgot to mention that you'll need to set a reference to Microsoft Outlook Object Library.
    Attached Files Attached Files
    Last edited by jaslake; 03-04-2011 at 02:45 PM.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Forum Contributor nuttycongo123's Avatar
    Join Date
    01-26-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: Macro For folder Creation In Outlook 2007

    Dear J,
    This Looks fine I will get back to you once i have tested it ...Thank you for always being there
    Regards
    N

  5. #5
    Forum Contributor nuttycongo123's Avatar
    Join Date
    01-26-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: Macro For folder Creation In Outlook 2007

    Dear J ,
    Observation : The Folders are getting created in default "INBOX" folder in my mail box .
    Target Modification:1/ To creat folder in a desired folder eg:"Account Information "which is nested in "Archived Folder "in outlook 2007. Here in attached is the dummy sheet explaining it .I dont have a archived folde in the outlook now so I aam explaing it by creating subfolders in the main folder "INBOX"
    2/ All the incoming e mails should automaticall open in the "Archived folder" instead of "INBOX" in my mail box .
    Regds
    N
    Attached Files Attached Files

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Macro For folder Creation In Outlook 2007

    Hi Nutty

    I'd like you to take the time to review your needs. I'm spending considerable time working FOR you and your needs change like I change skivvies (look it up). Much of your current requirements as indicated on your most recent file are not included in earlier Threads. Now, I know needs change...however...you need to define the project. Else, you'll drive us all "Nutty".

    Get back to me and let me know IF your latest post IS what you need. Is there ANYTHING else?

  7. #7
    Forum Contributor nuttycongo123's Avatar
    Join Date
    01-26-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: Macro For folder Creation In Outlook 2007

    Dear J ,
    Onething is sure about you now is ...that you are not a cross dresser
    Quote Originally Posted by jaslake View Post
    skivvies
    Humor apart I am sorry for the trouble ,but this THE FINAL problem.I will be more accurate henceforth.
    Thanks in advance
    N

  8. #8
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Macro For folder Creation In Outlook 2007

    Hi Nutty

    Perhaps
    Onething is sure about you now is ...that you are not a cross dresser
    Depending on what dictionary you used when you looked it up, that could be assumed. The broad definition is "undergarments" and most women I've known also wear "undergarments" so, I wouldn't rule out "cross dressing" as a sport.

    However, that's not relevant to the issue (whether I do or don't). The relevant issue is you need to know what you wish to do so I know what you wish to do.

  9. #9
    Forum Contributor nuttycongo123's Avatar
    Join Date
    01-26-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: Macro For folder Creation In Outlook 2007

    point taken
    Regards
    N

  10. #10
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Macro For folder Creation In Outlook 2007

    Hi Nutty
    The code in the attached will create a new folder in Personal Folders called "Archived Mail". Within that folder, it'll create Sub Folders for any items that exist in Column D of the attached worksheet. Based on your sample file, you'll see this in Outlook Folders.jpg.

    To retrieve Emails into these folders, you'll need to set up RULES in Outlook (Tools -> Rules and Alerts -> New Rule -> Move Message with specific words... -> Move to specified folder _> etc.

    Were I you, I would NOT get too specific on the Word...I'd use "Red", "Green", etc. It's been tested and, believe it or not, works (sort of surprised myself).
    Attached Files Attached Files

  11. #11
    Forum Contributor nuttycongo123's Avatar
    Join Date
    01-26-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: Macro For folder Creation In Outlook 2007

    Dear J,
    I can not be thankful enough for all your attention and help..this is exactly all I needed.
    P.S I track your threads very keenly they make a goodlearning resourse..
    Regards
    N

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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