Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Outlook 2003 Script: How to get the Index or number of items in a Folder (http://www.outlookbanter.com/outlook-vba/31776-outlook-2003-script-how-get.html)

news.microsoft.com November 2nd 06 12:44 PM

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

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


Tks



Sue Mosher [MVP-Outlook] November 2nd 06 01:06 PM

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

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"news.microsoft.com" wrote in message ...
Hi all

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


Tks



Sue Mosher [MVP-Outlook] November 2nd 06 01:41 PM

Outlook 2003 Script: How to get the Index or number of items in a Folder
 
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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Sue Mosher [MVP-Outlook]" wrote in message ...
Use the Folder.Count method.


"news.microsoft.com" wrote in message ...
Hi all

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


Tks



news.microsoft.com November 2nd 06 04:50 PM

Outlook 2003 Script: How to get the Index or number of items in a Folder
 
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]" a écrit dans le message
de news: ...
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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Sue Mosher [MVP-Outlook]" wrote in message
...
Use the Folder.Count method.


"news.microsoft.com" wrote in message
...
Hi all

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


Tks





Sue Mosher [MVP-Outlook] November 2nd 06 05:06 PM

Outlook 2003 Script: How to get the Index or number of items in a Folder
 
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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"news.microsoft.com" wrote in message ...
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]" a écrit dans le message
de news: ...
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 [MVP-Outlook]" wrote in message
...
Use the Folder.Count method.


"news.microsoft.com" wrote in message
...
Hi all

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


Tks





bbnimda November 6th 06 11:11 PM

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


"Sue Mosher [MVP-Outlook]" a écrit dans le message
de news: ...
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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"news.microsoft.com" wrote in message
...
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]" a écrit dans le
message
de news: ...
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 [MVP-Outlook]" wrote in message
...
Use the Folder.Count method.


"news.microsoft.com" wrote in message
...
Hi all

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


Tks








All times are GMT +1. The time now is 02:49 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com