![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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 |
#2
|
|||
|
|||
![]()
You were so close to answering your own question:
Set myFolder = Application.ActiveExplorer.CurrentFolder NbrItem = myfolder.items.count -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "bbnimda" wrote in message ... 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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook Script : How to get the current Folder | bbnimda | Outlook and VBA | 3 | November 21st 07 03:23 PM |
Outlook 2003 Script How to obtain the number of item in a folder ? | bbnimda | Outlook and VBA | 1 | June 28th 07 06:33 PM |
Item.Save and Item.Close Script causes Outlook 2007 to Crash | Rayyan | Outlook - Using Forms | 6 | November 25th 06 03:14 AM |
Outlook 2003 Script: How to get the Index or number of items in a Folder | news.microsoft.com | Outlook and VBA | 5 | November 6th 06 10:11 PM |
'Run a script' to open Current Calendar item | henry | Outlook - Using Forms | 1 | July 19th 06 10:29 PM |