Emails group by flag status then by weeks or day in outlook 2010

In Outlook 2010, if I want to create a folder view that works like this:

[+] Flag Status: Flagged for Follow Up
    [-] Today
    [+] Yesterday
    [+] Last Week... etc

(ie: group by Flag Status, then group by -Date-)

How should I set?
Who is Participating?
MRdogbearConnect With a Mentor Author Commented:
Sure. I did the following

1.       Create the user defined field first under field chooser as “DateReceived” (case sensitive)
2.       Enable the macro security to notification level…check the version how to do it online
3.       Under the vb project create the following code:
Public WithEvents myInbox As Outlook.Items
Private Sub Application_Quit()
    Set myInbox = Nothing
End Sub
Private Sub Application_Startup()
    Set myInbox = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox).Items
End Sub
Private Sub myInbox_ItemAdd(ByVal Item As Object)
    Item.UserProperties.Add "DateReceived", olDateTime
    Item.UserProperties.Item("DateReceived") = DateValue(Item.ReceivedTime)
End Sub
Sub AddUserProp()
    Dim olkMsg As Object
    Dim olkProp As Outlook.UserProperty
    For Each olkMsg In Application.ActiveExplorer.Selection
        If olkMsg.Class = 43 Then
            With olkMsg
                'Change YourPropertyName to the name of your property.'
                Set olkProp = olkMsg.UserProperties.Add("DateReceived", olDateTime, True)
                'Change YourPropertyValue to the value you want to assign to your property.'
                olkProp.Value = DateValue(olkMsg.ReceivedTime)
            End With
        End If
    Set olkMsg = Nothing
   Set olkProp = Nothing
End Sub
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
In Microsoft Outlook, what options do I have for arranging the contents of my folders?

This document shows you how to group by additional fields and/or criteria.

Microsoft Outlook 2010: Sorting Your Emails Messages & Attachment Tips

- Rancy
MRdogbearAuthor Commented:
After I group by flag status, I am not sure how to get outlook to group by
"last week"
No matter how I did, the email will group by individually if I take received as second group  by criteria.
Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

MRdogbearAuthor Commented:
Hi all
I figure out how to do it by having the maco running to do this. I will close this now
MRdogbearAuthor Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for MRdogbear's comment #a38375959

for the following reason:

No one seems know the solution
MRdogbearAuthor Commented:
No clmments
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.