A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

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



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 2nd 06, 12:44 PM posted to microsoft.public.outlook.program_vba
news.microsoft.com
external usenet poster
 
Posts: 65
Default 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


Ads
  #2  
Old November 2nd 06, 01:06 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default 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


  #3  
Old November 2nd 06, 01:41 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default 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


  #4  
Old November 2nd 06, 04:50 PM posted to microsoft.public.outlook.program_vba
news.microsoft.com
external usenet poster
 
Posts: 65
Default 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




  #5  
Old November 2nd 06, 05:06 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default 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




  #6  
Old November 6th 06, 11:11 PM posted to microsoft.public.outlook.program_vba
bbnimda
external usenet poster
 
Posts: 29
Default 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






 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to update sent items on IMAP Folder on server using Outlook 2003 ? Luqman Outlook - General Queries 0 September 4th 06 10:42 PM
how to retain 10 days items in Outlook 2003 deleted items folder? Balthazar Outlook - Installation 2 June 7th 06 05:05 PM
Outlook 2003 doesn't show number of selected items RD Outlook - Installation 1 March 2nd 06 10:47 PM
Writing a script -- to launch program from Outlook and paste phone number into it [email protected] Outlook - General Queries 0 January 20th 06 03:11 AM
How to sort in outlook 2003 by number of items in collapsed groups? Dan J.S. Outlook - General Queries 0 January 14th 06 06:52 PM


All times are GMT +1. The time now is 06:00 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-2025 Outlook Banter.
The comments are property of their posters.