+ Reply to Thread
Results 1 to 3 of 3

Saving mails in respective folders

Hybrid View

  1. #1
    Registered User
    Join Date
    03-21-2009
    Location
    Bangalore
    MS-Off Ver
    Excel 2003
    Posts
    60

    Saving mails in respective folders

    Hi Friends,

    I am newbie for VBA Outlook. I worked only on Excel VBA .

    The following is my question.

    In my Inbox, i will be getting the mails in such a way that, where i will have some unique number in the subject line". Please find the samples here.

    "101011 - User Creation"
    "Re:101011 - User Creation"
    "Fwd:Re:101011 - User Creation"


    "102022 - User Creation"
    "Re:102022 - User Creation"
    "Fwd:Re:102022 - User Creation"



    Based on this number, a folder should be created automatically, all the respectives mails should move there.



    Example:


    Create a folder called ‘My Emails’.
    My Emails - Main Folder
    101011 - Sub Folder
    (all the three mails)
    102022 - Sub Folder
    (all the three mails)


    Have to Extract all the email messages tied to the number & Place in folder.

    If attachment exists, Ensure attachment remains attached to message Make a copy of the attachment – same name
    Place in the same folder

    Please kindly help me with appropriate code.

    Please find the attachment for clear clarification on how mails move to folders.

    Thanks & Regards
    Ramesh

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Saving mails in respective folders

    Hi Ramserp,

    why not use Outlook's native functionality with rules to put emails with a certain text in the subject into their own folder? Setting up a few rules might be way easier than creating a macro.

    Set up the rule for the first number, then just copy the rule for the next number(s).

  3. #3
    Registered User
    Join Date
    03-21-2009
    Location
    Bangalore
    MS-Off Ver
    Excel 2003
    Posts
    60

    Re: Saving mails in respective folders

    Hi teylyn,

    The needs to be store in folders in Hard Disk (C or D drive). Approximately there will be 1100 folders needs to create. I think setting rules for 1100 mails will be difficult task. Please help me with some code.


    Thanks & Regards
    Ramesh

+ 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