Outlook 2003 Script: How to get the Index or number of items in a Folder

  • Thread starter news.microsoft.com
  • Start date
N

news.microsoft.com

Hi all

How can'I get the last Index or the number of Items in a public folder


Tks
 
S

Sue Mosher [MVP-Outlook]

Use the Folder.Count method.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP-Outlook]

Sorry, I've been in the 2007 trenches lately. In earlier versions, the object is MAPIFolder, not FOlder.

To get a non-default folder, you need to walk the folder hierarchy using the Folders collections or use a function that does that for you. See http://www.outlookcode.com/d/code/getfolder.htm and, especially for public folders, http://www.outlookcode.com/codedetail.aspx?id=1164

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers


Use the Folder.Count method.
 
N

news.microsoft.com

Hi Sue,

I know how to get a public folder, but I didn't success to count the nuber
of item in that folder (I want to count all items read and not read)

tks

"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le message
de %[email protected]...
Sorry, I've been in the 2007 trenches lately. In earlier versions, the
object is MAPIFolder, not FOlder.

To get a non-default folder, you need to walk the folder hierarchy using the
Folders collections or use a function that does that for you. See
http://www.outlookcode.com/d/code/getfolder.htm and, especially for public
folders, http://www.outlookcode.com/codedetail.aspx?id=1164

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers


Use the Folder.Count method.
 
S

Sue Mosher [MVP-Outlook]

As I said, the Count property of the folder's MAPIFolder object will return the total number of items in that folder.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers


news.microsoft.com said:
Hi Sue,

I know how to get a public folder, but I didn't success to count the nuber
of item in that folder (I want to count all items read and not read)

tks

"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le message
de %[email protected]...
Sorry, I've been in the 2007 trenches lately. In earlier versions, the
object is MAPIFolder, not FOlder.

To get a non-default folder, you need to walk the folder hierarchy using the
Folders collections or use a function that does that for you. See
http://www.outlookcode.com/d/code/getfolder.htm and, especially for public
folders, http://www.outlookcode.com/codedetail.aspx?id=1164
 
B

bbnimda

Tks Sue,


"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le message
de [email protected]...
As I said, the Count property of the folder's MAPIFolder object will return
the total number of items in that folder.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers


news.microsoft.com said:
Hi Sue,

I know how to get a public folder, but I didn't success to count the nuber
of item in that folder (I want to count all items read and not read)

tks

"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le
message
de %[email protected]...
Sorry, I've been in the 2007 trenches lately. In earlier versions, the
object is MAPIFolder, not FOlder.

To get a non-default folder, you need to walk the folder hierarchy using
the
Folders collections or use a function that does that for you. See
http://www.outlookcode.com/d/code/getfolder.htm and, especially for public
folders, http://www.outlookcode.com/codedetail.aspx?id=1164
 

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