• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Outlook Tips

Learning Microsoft Outlook One Tip At A Time

Diane Poremsky [Outlook MVP]

  • Home
  • Tips Archive
  • How to...
  • Beginner
  • Outlook.com

Tip 528: Sort By Category

Many users are surprised when they discover they can’t sort by category. It is possible to sort by category but you need to use the By Category view, and sort the groups by name.

Outlook's Categories work this way because the category field can contain multiple categories (and few would want to sort by the first category only), while each group is made up only of items in one category.

And no, upgrading to the latest, greatest version will not change how this feature works. It's a limitation of the multi-value field.

If you really, really want to sort by the category string, you could use a macro to create a custom Text field. However, it will sort by the first category in the list, and as seen in this screenshot, it's less than useful, as the categories are listed in the reverse order they were added to an item. If you only use one category on each item, it may work for you.

Sort by a custom category text field

I created the Category Sort field using the following macro. See How to use macros if you are new to Outlook programming.

Public Sub SortCategory()
    Dim currentExplorer As Explorer
    Dim Selection As Selection
    Dim obj, objMail As Object
    Dim objProp As Outlook.UserProperty
    Dim strCategory
    Dim i
      
    Set currentExplorer = Application.ActiveExplorer
    Set Selection = currentExplorer.Selection
  
    On Error Resume Next
  
 For Each obj In Selection
         Set objMail = obj
         strCategory = objMail.Categories
  
         Set objProp = objMail.UserProperties.Add("Category Sort", olText, True)
         objProp.value = strCategory
         objMail.Save
   
        Err.Clear
    Next
   
    Set currentExplorer = Nothing
    Set obj = Nothing
    Set Selection = Nothing
End Sub


Published July 16, 2008. Last updated on May 3, 2017.

Share this:

  • Twitter
  • Facebook
  • LinkedIn
  • More
  • Print
  • Tumblr
  • Reddit
  • Pocket
  • Pinterest

Related posts:

An Outlook 2007 user asked the following question in the Microsoft newsgroups: "I have my outlook to-do bar customized only tTip 475: To-do Bar: Click Here to Add CategorizeTip 124: Master Category List The list of Views you see in the Define View dialogs or View selector lists groups the views into four groups, based on the type oTip 501: Sort Views Alphabetically Having problems alphabetizing your address book by last name?  Go to Tools, E-mail accounts, View or change existing directorTip 516: Address Book Sort Order
Subscribe
Notify of
2 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Primary Sidebar

Search OutlookTips

Training and one-on-one assistance

Do you need help setting up Outlook or want some one-on-one training? I'm available for hire. See Training and one-on-one assistance for fees and to check availability.

All-Time Most Popular Posts

  • Windows 7 and Vista Start Search field
    How to start Outlook in safe mode
  • outlook.com icon
    Delete a message stuck in Outlook's Outbox
  • How to use Outlook's Command line switches
  • Use Cleanviews switch to reset all views
    How to Reset the View on Outlook folders
  • Where are my Outlook Files?
  • Folder paths
    How to Find Folder Paths in Outlook Mailboxes
  • How to use Scanpst.exe to repair Outlook data files
  • Outlook's Missing Holidays
  • backstage page
    Where is File tab in Outlook?
  • Icons found in the Inbox, Message Headers, and Toolbars

Footer

Recent Posts

  • Log into multiple Outlook on the web accounts
  • Keeping Hackers out of Microsoft accounts
  • Microsoft Account Closure Email
  • Outlook on the web Quick Actions moved to the right
  • Automatically sign out of Outlook.com

Recent Bug List

Microsoft keeps a running list of issues affecting recently released updates at Fixes or workarounds for recent issues in Outlook for Windows.

Office Update History

Update history for supported Office versions is at Update history for Office

Resources

Ask questions and share your knowledge in Outlook Forums.

You Might Like

Where is File tab in Outlook?
Using Two-factor authentication
Where are my Outlook Files?
How to use Outlook's Command line switches

© 2003–2025 · Outlook Tips

wpDiscuz
You are going to send email to

Move Comment