+ Reply to Thread
Results 1 to 8 of 8

Move selected email to different subfolders in archive based on sender name

  1. #1
    Registered User
    Join Date
    11-06-2020
    Location
    Slovakia
    MS-Off Ver
    2010
    Posts
    4

    Move selected email to different subfolders in archive based on sender name

    Hi, I would be grateful for a little help, I need to modify the macro.
    The goal is to move the selected email to the archive subfolder based on sender name.

    Macro in attachment can do this, but moves emails in the inbox, I need to move them specifically to the archive ( pst file ) subfolders.
    Attached Files Attached Files
    Last edited by Bender64; 11-06-2020 at 05:00 AM.

  2. #2
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: Move selected email to different subfolders in archive based on sender name

    it's very tough to modify code without seeing inside an actual file or app for testing purposes. can you upload the file that it is housed in? I've known very few programmers in my lifetime that could write code from memory without using intellisense. but I've seen some who could write PHP code from scratch in notepad! amazing....

  3. #3
    Registered User
    Join Date
    11-06-2020
    Location
    Slovakia
    MS-Off Ver
    2010
    Posts
    4

    Re: Move selected email to different subfolders in archive based on sender name

    Outlook >>> Alt F11 >>> VbaProject.OTM >>> Module1

    This is where my code is stored. I tried to add it as [CODE] but I don't have permission so the only option was a txt file.

    "You are not allowed to post any kinds of links, images or videos until you post a few times."

  4. #4
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: Move selected email to different subfolders in archive based on sender name

    Post a screenshot of your entire folder directory tree in your PST file in Outlook when it's open. I assume you know how to take a screenshot the return is an image file in the form of PNG or jpg or jpeg. Post any one of those here as an actual hyperlink or plain text in a post and upload it to a cloud drive and if the system doesn't accept it here put spaces in between all the characters in the link and that'll get around the cloud Fair software that they use. Hopefully this post doesn't anger the moderators but I take all the security measures anyway before I click on a link to make sure there's no virus or it's actually valid and not malicious. But I'm not too worried about you since you seem to be asking a legitimate question :-)

  5. #5
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: Move selected email to different subfolders in archive based on sender name

    On a side note it's very unfortunate that security systems can be worked around all the time for people just trying to help others out because I do that all day long every day and the reason cloud fair is very sophisticated and high quality and the reason these people on this forum use it is for that reason but they're not that good just like no one is that good. And you can thank capitalistic America for that idiocy. I'm not talking about the good folks that run this forum I'm talking about America's nonsense of business competition creating all sorts of opportunities to help others but unfortunately have to go through work around methods to get around the greed that runs the world

  6. #6
    Registered User
    Join Date
    11-06-2020
    Location
    Slovakia
    MS-Off Ver
    2010
    Posts
    4

    Re: Move selected email to different subfolders in archive based on sender name

    I hope this is what you asked for

    Attachment 702992

  7. #7
    Registered User
    Join Date
    11-06-2020
    Location
    Slovakia
    MS-Off Ver
    2010
    Posts
    4

    Re: Move selected email to different subfolders in archive based on sender name

    SOLVED. ;)

    Set objTargetFolder = Outlook.Session.Folders("ArchÝvy").Folders("_Names").Folders(strSenderName)

    and if folder do not exist :

    Set objTargetFolder = Outlook.Session.Folders("ArchÝvy").Folders("_Names").Folders.Add(strSenderName)

    vba_php thx for your time.
    Attached Files Attached Files

  8. #8
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: Move selected email to different subfolders in archive based on sender name

    sure. see you around.

+ 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. Opening .Xls Attachement from Email based on Subject/Sender
    By lougs7 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-09-2020, 05:26 AM
  2. Replies: 0
    Last Post: 02-11-2019, 08:45 AM
  3. [SOLVED] Move Data Based on result of a combo box to another tab and archive by date
    By rlh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-16-2017, 03:54 PM
  4. [SOLVED] Help please to move row to a second archive sheet when a Marlett tick is selected in cell
    By Danz1985 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-16-2016, 07:21 PM
  5. Forward Email Based on Selected Object's Subject and/or Sender and Recipient Address
    By Citanaf in forum Outlook Programming / VBA / Macros
    Replies: 2
    Last Post: 12-11-2015, 07:38 PM
  6. Create folders in all the subfolders and move subfolders
    By Amarjeet Singh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-24-2015, 12:51 PM
  7. Save an Outlook attachment and move the email to a folder based and sender
    By db16886 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-24-2014, 09:49 PM

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