Outlook 2003 parent folder

Hi Experts,

I want to be able to view the number of unread emails in an email folder. but it will only display the email number in each subfolder. cant the parent folder display an 'overall number'.

outlook 2000 / 2003

All the best,

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I can only think of some VBA code (add icon to toolbar). It will then show the number of unread messages in a message box.

Sub Countunreadmessages()

Dim objOutlook As Object, objnSpace As Object, objFolder As Object

Dim d

d = 0

Set objOutlook = CreateObject("Outlook.Application")
Set objnSpace = objOutlook.GetNamespace("MAPI")

Set objFolder = objnSpace.Folders("fill in parent folder name")

For Each Folder In objFolder.Folders

    emailcount = 0

    For Each i In Folder.Items

        If (i.UnRead) Then

            emailcount = emailcount + 1

        End If


    d = d + emailcount


MsgBox d

Set d = Nothing
Set objOutlook = Nothing
Set objnSpace = Nothing
Set objFolder = Nothing

End Sub

Open in new window

No it wont allow. if you have subfolders that it will show all unread emails in the subfolders also.
Alexei KuznetsovMicrosoft Outlook MVPCommented:
Unfortunately ,you can't out of the box. But I can recommend the free Outlook Folder Report tool can show the folder list (or tree) with inclusive and exclusive number of messages/items. It also provides the Outlook add-in and you can easily show these numbers using right-click folder menu.

DISCLAIMER: I recommend this tool because I'm one of its developers, so feel free to ask any further questions.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.