Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to organize my inbox and move my messages to certain folders. Is there a keyboard shortcut I can set up like:

CRTL + 1 : Personal Folder

CRTL + 2 : Task 1 Folder

CRTL + 3 : Task 2 Folder

share|improve this question
up vote 4 down vote accepted

You can create a macro, digital certificate, and assign it to a toolbar button or keyboard shortcut. Check out the information listed here:

http://www.fiftyfoureleven.com/weblog/general/outlook-email-shortcuts

Here's the macro code:

Sub MoveSelectedMessagesToFolder()
On Error Resume Next


    Dim objFolder As Outlook.MAPIFolder, objInbox As Outlook.MAPIFolder
    Dim objNS As Outlook.NameSpace, objItem As Outlook.MailItem


    Set objNS = Application.GetNamespace("MAPI")
    Set objInbox = objNS.GetDefaultFolder(olFolderInbox)
    Set objFolder = objInbox.Folders("_Reviewed")
    '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.Move objFolder
            End If
        End If
    Next


    Set objItem = Nothing
    Set objFolder = Nothing
    Set objInbox = Nothing
    Set objNS = Nothing
End Sub
share|improve this answer
    
This is all nice, but it does not work in Outlook 2007. Oh, the macro works just fine, but there is no way I can assign any keyboard shortcut to run the macro... – Roland Tepp Mar 22 '10 at 10:46
    
I'd be interested in how to do it in 2007 too – justintime Mar 24 '10 at 15:53
    
You could use an AutoHotKey macro to run them, couldn't you? – Ivo Flipse Apr 14 '10 at 7:21
    
I couldn't see any info on "AutoHotKey" macros in Outlook 2007. I created a new question re Outlook 2007 here: superuser.com/questions/132066/… – Marcus Leon Apr 17 '10 at 17:02

Yes - you can create a Quick Step to easily do this. Create one to move items to a folder, select options, and assign a shortcut (which can be CTRL + SHIFT 1-9).

Create a new quick step

Select quick step options

Select quick step shortcut

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .