How to get mail into particular folder in outlook

There are several ways to get mail into a particular folder in Outlook:

Method 1: Using Rules

  1. Open Outlook and go to the "Home" tab in the ribbon.
  2. Click on the "Rules" button in the "Move" group.
  3. Click on "Manage Rules & Alerts" in the drop-down menu.
  4. Click on "New Rule" and select "Move messages from someone to a folder" or "Move messages with specific words in the subject to a folder".
  5. Specify the conditions for the rule, such as the sender or subject.
  6. Choose the folder you want to move the mail to.
  7. Click "OK" to save the rule.

Method 2: Using Quick Steps

  1. Open Outlook and go to the "Home" tab in the ribbon.
  2. Click on the "Quick Steps" button in the "Move" group.
  3. Click on "Create New Quick Step" and select "Move to Folder".
  4. Choose the folder you want to move the mail to.
  5. Click "OK" to save the quick step.

Method 3: Using Drag and Drop

  1. Open Outlook and go to the "Inbox" or the folder where you want to move the mail.
  2. Select the mail you want to move by checking the box next to it.
  3. Drag the selected mail to the folder you want to move it to.
  4. Release the mouse button to drop the mail into the folder.

Method 4: Using the "Move" Button

  1. Open Outlook and go to the "Inbox" or the folder where you want to move the mail.
  2. Select the mail you want to move by checking the box next to it.
  3. Click on the "Move" button in the "Home" tab in the ribbon.
  4. Choose the folder you want to move the mail to from the drop-down menu.
  5. Click "OK" to move the mail.

Method 5: Using VBA Macro

  1. Open Outlook and go to the "Developer" tab in the ribbon.

  2. Click on the "Visual Basic" button in the "Code" group.

  3. In the Visual Basic Editor, create a new module by clicking on "Insert" > "Module".

  4. Write the following code:

    Sub MoveMailToFolder()
     Dim olApp As New Outlook.Application
     Dim olNamespace As Outlook.Namespace
     Dim olFolder As MAPIFolder
     Dim olItem As Object
    
     Set olApp = New Outlook.Application
     Set olNamespace = olApp.GetNamespace("MAPI")
     Set olFolder = olNamespace.GetDefaultFolder(olFolderInbox)
     Set olItem = olFolder.Items("MailItem")
    
     olItem.Move olFolder
    End Sub
  5. Replace "MailItem" with the type of item you want to move (e.g. "EmailMessage").

  6. Save the module and close the Visual Basic Editor.

  7. Go back to Outlook and click on the "Developer" tab in the ribbon.

  8. Click on the "Run" button in the "Code" group to run the macro.

Note: The above code is just an example and may need to be modified to suit your specific needs.