Skip to main content

How to group and sort emails by month in Outlook?

Author Kelly Last modified

Emails are sorted by received date in the Inbox of Outlook by default. However, there is no command to sort or group all emails by the received month. Here I will introduce a way to group and sort all emails by month in Outlook.

Group or sort emails by month in Outlook by using VBA code


Group or sort emails by month in Outlook by using VBA code

This method will guide you to create a new column named as Month, next apply a VBA macro to extract received month into the new column, and then you can sort or group all emails by the Month column in Outlook.

1.  Open a mail folder where you will sort or group emails by month, and click the View Settings button on the View tab in Outlook 2010 and later version.

doc sort emails by month 1

Note: In Outlook 2007, you can click the View > Current View > Customize current view.

2.  In the coming Advanced View Settings/Customize View dialog box, click the Columns button (or Fields button).

doc sort emails by month 2

3.  In the Show Column/Fields dialog box, click the New Column button (or New Field button) to open New Column/Field dialog box, type Month in the Name box, keep Text selected in both Type box and Format box, and then click the OK button. See screenshot below:

doc sort emails by month 3

4.  Now you get back to the Show Columns/Fields dialog box, click to select the Month item in the Show these columns (or Fields) in this order box, and move it below the Received by clicking the Move Up button, and at last click the OK button.

doc sort emails by month 4

5.  Click the OK button to close the Advanced View Settings/Customize View dialog box.

6.  Select all emails in the opening folder with selecting any email and then pressing the Ctrl + A keys simultaneously.

Note: If the Reading Pane is turning on, please close it with clicking the View > Reading Pane > Off.

7.  Open the Microsoft Visual Basic for Applications window with pressing the Alt + F11 keys in a meanwhile, and then click the Insert > Module.

8.  Paste the following VBA macro into the module:

VBA: Sort or group emails by month

Sub ListSelectionMonth()
	Dim aObj As Object
	Dim oProp As Outlook.UserProperty
	Dim sMonth
	
	On Error Resume Next
	
	For Each aObj In Application.ActiveExplorer.Selection
		Set oMail = aObj
		
		sMonth = Month(oMail.ReceivedTime)
		Set oProp = oMail.UserProperties.Add("Month", olText, True)
		oProp.Value = sMonth
		oMail.Save
		
		Err.Clear
	Next
	
End Sub

9.  Press the F5 key to run this VBA macro.

10.  Now each email’s received month is extracted into the following Month column. To sort all emails by month in this opening folder, just click the column header of Month. See screenshot:

doc sort emails by month 5

Note: To group all emails by month in this opening folder, right click the column header of Month, and then select the Group By This Field from the right-clicking menu. See screenshot:

doc sort emails by month 6

AI Mail Assistant in Outlook: Smarter Replies, Clearer Communication (one-click magic!) FREE

Streamline your daily Outlook tasks with the AI Mail Assistant from Kutools for Outlook. This powerful tool learns from your past emails to offer intelligent and accurate responses, optimize your email content, and help you draft and refine messages effortlessly.
doc ai email handle

This feature supports:

  • Smart Replies: Get responses crafted from your past conversations—tailored, precise, and ready to go.
  • Enhanced Content: Automatically refine your email text for clarity and impact.
  • Effortless Composition: Just provide keywords, and let AI handle the rest, with multiple writing styles.
  • Intelligent Extensions: Expand your thoughts with context-aware suggestions.
  • Summarization: Get concise overviews of long emails instantly.
  • Global Reach: Translate your emails into any language with ease.

This feature supports:

  • Smart email replies
  • Optimized content
  • Keyword-based drafts
  • Intelligent content extension
  • Email summarization
  • Multi-language translation

Best of all, this feature is completely free forever! Don’t wait—download AI Mail Assistant now and enjoy!


Best Office Productivity Tools

Breaking News: Kutools for Outlook Launches Free Version!

Experience the all-new Kutools for Outlook with 100+ incredible features! Click to download now!

🤖 Kutools AI : Uses advanced AI technology to handle emails effortlessly, including replying, summarizing, optimizing, extending, translating, and composing emails.

📧 Email Automation: Auto Reply (Available for POP and IMAP)  /  Schedule Send Emails  /  Auto CC/BCC by Rules When Sending Email  /  Auto Forward (Advanced Rules)   /  Auto Add Greeting   /  Automatically Split Multi-Recipient Emails into Individual Messages ...

📨 Email Management: Recall Emails  /  Block Scam Emails by Subjects and Others  /  Delete Duplicate Emails  /  Advanced Search  /  Consolidate Folders ...

📁 Attachments ProBatch Save  /  Batch Detach  /  Batch Compress  /  Auto Save   /  Auto Detach  /  Auto Compress ...

🌟 Interface Magic: 😊More Pretty and Cool Emojis   /  Remind you when important emails come  /  Minimize Outlook Instead of Closing ...

👍 One-click Wonders: Reply All with Attachments  /   Anti-Phishing Emails  /  🕘Show Sender's Time Zone ...

👩🏼‍🤝‍👩🏻 Contacts & Calendar: Batch Add Contacts From Selected Emails  /  Split a Contact Group to Individual Groups  /  Remove Birthday Reminders ...

Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Instantly unlock Kutools for Outlook with a single click. Don't wait, download now and boost your efficiency!

kutools for outlook features1 kutools for outlook features2