View Single Post
  #1  
Old November 29th 07, 11:23 AM posted to microsoft.public.outlook.program_vba
bbnimda
external usenet poster
 
Posts: 94
Default Outlook Script: How to get the number of item in current folder

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......?cou nt]

thks

--
http://bensoft.miniville.fr/tra


Ads