+ Reply to Thread
Results 1 to 11 of 11

Search Outlook mails for keyword in body and move mail to folder or create folder and move

  1. #1
    Forum Contributor ANDREAAS's Avatar
    Join Date
    05-06-2013
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    368

    Search Outlook mails for keyword in body and move mail to folder or create folder and move

    Hallo everyone.

    I am looking to sort mails more efficiently. I have a list of about 1000 cities and want mails to be sorted into folders based on the city names being found in the body of a mail.

    i.e. When a mail is received and has the city name Cape Town for instance, if the name Cape Town is in my list off 1000 cities, that mail needs to move to a folder called "Cape Town". If the folder does not exist yet, it must create a folder.

    The list of 1000 cities must be able to expand if necessary.

    Thanks in advance for any assistance.
    A great big thank you to all the experts on the forum that are always so friendly and helpful.

    You guys Rock!!!!

  2. #2
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,835

    Re: Search Outlook mails for keyword in body and move mail to folder or create folder and

    A forum search would turn up some code to get you started. See, for example: https://www.excelforum.com/outlook-p...subfolder.html
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  3. #3
    Forum Contributor ANDREAAS's Avatar
    Join Date
    05-06-2013
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    368

    Re: Search Outlook mails for keyword in body and move mail to folder or create folder and

    thank you. i am obviously not searching correctly as i did not find anything. will check out the link that you shared. much appreciated.
    Last edited by AliGW; 12-19-2020 at 04:27 AM. Reason: PLEASE don't quote unnecessarily!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,465

    Re: Search Outlook mails for keyword in body and move mail to folder or create folder and

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Contributor ANDREAAS's Avatar
    Join Date
    05-06-2013
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    368

    Re: Search Outlook mails for keyword in body and move mail to folder or create folder and

    Quote Originally Posted by macropod View Post
    A forum search would turn up some code to get you started. See, for example: https://www.excelforum.com/outlook-p...subfolder.html
    Hi, no sorry. Not finding anything even remotely close to what i am asking....

  6. #6
    Forum Contributor ANDREAAS's Avatar
    Join Date
    05-06-2013
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    368

    Re: Search Outlook mails for keyword in body and move mail to folder or create folder and

    Quote Originally Posted by AliGW View Post
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    Hi, no. It does not address the question nor can i find anything close to my question in the archives.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,465

    Re: Search Outlook mails for keyword in body and move mail to folder or create folder and

    Fair enough!

  8. #8
    Forum Contributor ANDREAAS's Avatar
    Join Date
    05-06-2013
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    368

    Re: Search Outlook mails for keyword in body and move mail to folder or create folder and

    Hi

    I found this code that will work for a single criteria, but do not know how to adapt it for multiple criteria like 1000 or more different criteria.

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor ANDREAAS's Avatar
    Join Date
    05-06-2013
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    368

    Re: Search Outlook mails for keyword in body and move mail to folder or create folder and

    Would it be possible to modify this code in such a way that it solves my original question?

  10. #10
    Forum Contributor ANDREAAS's Avatar
    Join Date
    05-06-2013
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    368

    Re: Search Outlook mails for keyword in body and move mail to folder or create folder and

    bump, no reply

  11. #11
    Forum Contributor ANDREAAS's Avatar
    Join Date
    05-06-2013
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    368

    Re: Search Outlook mails for keyword in body and move mail to folder or create folder and

    bump no reply

+ 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. search folder and move folder
    By omri_k in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-30-2020, 11:43 AM
  2. Replies: 0
    Last Post: 05-19-2017, 05:23 AM
  3. OUTLOOK 365 - Move items to folder
    By fabien1 in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 10-19-2016, 12:02 AM
  4. Need to copy the Full data (Body) from Outlook Mail Box(specified Folder)
    By narendra.kilari in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-28-2016, 07:17 AM
  5. Create folder and move files to that folder based on file name
    By biznez in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-26-2016, 06:58 PM
  6. Create FOLDER in subfoldesr and move folders with specific names into FOLDER
    By Amarjeet Singh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-25-2015, 09:46 AM
  7. Replies: 0
    Last Post: 03-20-2012, 12:42 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