Technology Networking & Internet

How to Move a Message to a Personal Folder Macro in Outlook 2007

    • 1). Open Outlook by double-clicking the icon that is located on your desktop. You can also do this by clicking the "Start" button and accessing it directly from the "Start" menu.

    • 2). Click on the "Tools" button within the Toolbar and hover over the "Macro" option. From here, click on the option that reads "Visual Basic Editor."

    • 3). Enter the following Visual Basic script in the Visual Basic Editor in Outlook 2007:

      Sub MoveToArchive()
      On Error Resume Next
      Dim objFolder As Outlook.MAPIFolder
      Dim objNS As Outlook.NameSpace, objItem As Outlook.MailItem

      Set objNS = Application.GetNamespace("MAPI")
      Set objFolder = objNS.Folders("Personal Folders").Folders("Ancient Archive")
      'Assume this is a mail folder

      If objFolder Is Nothing Then
      MsgBox "This folder doesn't exist!", vbOKOnly + vbExclamation, "INVALID FOLDER"
      End If

      If Application.ActiveExplorer.Selection.Count = 0 Then
      'Require that this procedure be called only when a message is selected
      Exit Sub
      End If

      For Each objItem In Application.ActiveExplorer.Selection
      If objFolder.DefaultItemType = olMailItem Then
      If objItem.Class = olMail Then
      objItem.UnRead = False
      objItem.Move objFolder
      End If
      End If
      Next

      Set objItem = Nothing
      Set objFolder = Nothing
      Set objNS = Nothing
      End Sub

    • 4). Edit the Visual Basic maco line that sets the destination folder for Outlook 2007 to move the message to from "Ancient Archive" to the name of the personal folder in your Outlook 2007 PST. For example,
      Set objFolder = objNS.Folders("Personal Folders").Folders("Your Mail Folder Name Here")

    • 5). Choose the "Save" menu button and restart Outlook 2007. The macro will move all email that is read to your personal folder in the Outlook PST.

SHARE
RELATED POSTS on "Technology"
Use the Right SEO Service to Handle Negative Publicity
Use the Right SEO Service to Handle Negative Publicity
Dartboard
Dartboard
How to Feed Your FeedBurner Feed to Twitter
How to Feed Your FeedBurner Feed to Twitter
SEO Tips on How to Have Lower Bounce Rate
SEO Tips on How to Have Lower Bounce Rate
.Mobi - The Birth Of A Mobile Internet Revolution?
.Mobi - The Birth Of A Mobile Internet Revolution?
How to Autosend Emails in Gmail
How to Autosend Emails in Gmail
Tumblr HTML Font Guide
Tumblr HTML Font Guide
Elements In Rugby - Updated
Elements In Rugby - Updated
Discover The Value Of Directory Submissions For Your Business At A Great Price
Discover The Value Of Directory Submissions For Your Business At A Great Price
Used Car Auctions
Used Car Auctions
Masking an IP
Masking an IP
How seo article writing increase your rankings on Google
How seo article writing increase your rankings on Google
Features To Look In While Hiring Mass Email Service
Features To Look In While Hiring Mass Email Service
Internet Marketing Advertising: Attracting Success
Internet Marketing Advertising: Attracting Success
Local Hotels in Karachi. Bruges Hotels Are Your Convenient Way to Wake Up on the Doorstep of Wonderf
Local Hotels in Karachi. Bruges Hotels Are Your Convenient Way to Wake Up on the Doorstep of Wonderf
3 Ways To Lose Money With Affiliate Marketing On The Internet
3 Ways To Lose Money With Affiliate Marketing On The Internet
How to Use Japanese Kanji With Windows Vista
How to Use Japanese Kanji With Windows Vista
How to Check Domain Trust Status
How to Check Domain Trust Status
Anon Proxy - What is the Best Anon Proxy
Anon Proxy - What is the Best Anon Proxy
How to Use a Different Dynamic DNS Provider in Windows Home Server
How to Use a Different Dynamic DNS Provider in Windows Home Server

Leave Your Reply

*