Outlook 2007: Group By Day?

J

Julie@Yortech

In Outlook 2007, default groups that are displayed include Today, Yesterday,
Last Week, Last Month, and Older. Can anybody suggest a way to customise the
view so that it groups messages by Day? (This feature was available in
Outlook 2003).
 
B

Brian Tillman [MVP - Outlook]

In Outlook 2007, default groups that are displayed include Today,
Yesterday,
Last Week, Last Month, and Older. Can anybody suggest a way to customise
the
view so that it groups messages by Day? (This feature was available in
Outlook 2003).

Outlook 2007's "Show in Groups" is identical to Outlook 2003's feature of
the same name. If you have "Date" selected and "Show in Groups" selected,
you'll get exactly what you saw in Outlook 2003.

Perhaps the "Message Timeline" view is what you want.
 
J

Julie@Yortech

Thanks for your suggestions, however, this is not what I am trying to achieve
- apologies for not explaining well enough so I'll try again. I would like
to customize Outlook 2007 so that my messages appear in groups by day, i.e.
all messages received today, all messages received yesterday, all messages
received on Sunday, all messages received on Saturday and so on. As far as I
can make out, the default groups are today, yesterday, last week, last month
and older and I cannot work out a way to change the defaults or customize a
new group to display the messages by day. Can anybody suggest a way? All
help gratefully received. Thanks, Julie.
 
B

Brian Tillman [MVP - Outlook]

Thanks for your suggestions, however, this is not what I am trying to
achieve
- apologies for not explaining well enough so I'll try again. I would
like
to customize Outlook 2007 so that my messages appear in groups by day,
i.e.
all messages received today, all messages received yesterday, all messages
received on Sunday, all messages received on Saturday and so on. As far
as I
can make out, the default groups are today, yesterday, last week, last
month
and older and I cannot work out a way to change the defaults or customize
a
new group to display the messages by day. Can anybody suggest a way? All
help gratefully received.

We know what you want. As far as I can tell, Outlook doesn't have the
ability you describe and Outlook 2003 could not do it either. Today's
messages will always show under the group "Today" and yesterday's under
"Yesterday" if you Group By date and there are no other groupings that I can
find that would give you what you describe.
 
Joined
Mar 23, 2009
Messages
1
Reaction score
0
Mine worked that way in 2003 and until last week in 2007. After the last updates from Microsoft it no longer does that. I moved from Outlook Express to Outlook 2003 then to Outlook 2007 and that is the way all my folders showed. Today, yesterday, the day before that, the day before that one, etc. I hate the way it is working now. I do not like a full week or month in one group. I am still looking as I know it did work and would like to get that view back.
 
Joined
Jul 2, 2009
Messages
1
Reaction score
0
You can group by day if you have a userproperty field populated programmatically.

To do this,
Insert the following VBA code into outlook and run the sub
Add the "dayreceived" field in outlook. you should now be able to group by this field.

If you have a large number of emails, this may take a while to run... (it took about 20 minutes to run through a couple thousand emails)

note/warning!: running the code below will clear all of the pre-existing userproperties. Typically this will not have any affect unless you have already populated the userproperties fields.

Sub bulk_add_dayreceived_userdefined_field()
Dim NS As NameSpace
Dim targetfolder As MAPIFolder
Dim Msg As Object
Dim i As Integer
Dim a As UserProperty
Dim x As Integer

Set NS = Application.Session
'By default, this will target your inbox.
Set targetfolder = NS.GetDefaultFolder(olFolderInbox)

i = targetfolder.items.count

If i = 0 Then
exit Sub
End If

Do
Set Msg = targetfolder.items(i)
If Msg.Class = olMail Then

'REMOVE EXISTING USERPROPERTIES
If Msg.UserProperties.count <> 0 Then
x = Msg.UserProperties.count

Do
Msg.UserProperties.Remove (x)
x = x - 1
Loop Until x = 0
End If

'ADD DAYRECEIVED USERPROPERTY
Set a = Msg.UserProperties.Add("DayReceived", olDateTime)
a.Value = Format(Msg.ReceivedTime, "mm/dd/yyyy")
Msg.Save
End If

i = i - 1
Loop Until i = 0

Set NS = Nothing
Set targetfolder = Nothing
End Sub
 
Last edited:
Joined
Aug 8, 2011
Messages
1
Reaction score
0
will this apply to all incoming messages as well, or just the ones currently in my mail box?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top