Outlook Script: How to get the number of item in current folder

  • Thread starter Thread starter bbnimda
  • Start date Start date
B

bbnimda

Config: Exchange 2003 / Outlook 2003

Hi all,

I know how to get the number of item in a folder using this

Set myFolder =
Application.GetNamespace("MAPI").Folders("Folder1").Folders("Folder2")......Folders("FolderX")
NbrItem = myfolder.items.count

this is usefull when my form is in a folder and I want count Item in other
Folder, But....

I'm asking my Self, when I count the number of item in current folder is
there an easier command ?

something like
[Application.ActiveExplorer.CurrentFolder......?count]

thks
 
You were so close to answering your own question:

Set myFolder = Application.ActiveExplorer.CurrentFolder
NbrItem = myfolder.items.count
 
Back
Top