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

Scripting outlook.



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 8th 06, 09:30 PM posted to microsoft.public.outlook.program_vba
MN
external usenet poster
 
Posts: 3
Default Scripting outlook.

Hi.

I would like to count the messages in an Outlook folder programatically.

How do I do that?

Mariah


  #2  
Old September 8th 06, 11:32 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Scripting outlook.

MsgBox MAPIFolder.Items.Count

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"MN" wrote in message
...
Hi.

I would like to count the messages in an Outlook folder programatically.

How do I do that?

Mariah




  #3  
Old September 9th 06, 09:06 AM posted to microsoft.public.outlook.program_vba
MN
external usenet poster
 
Posts: 3
Default Scripting outlook.

Please give me the whole code.

kindly

Mariah



"Dmitry Streblechenko" skrev i meddelandet
...
MsgBox MAPIFolder.Items.Count

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"MN" wrote in message
...
Hi.

I would like to count the messages in an Outlook folder programatically.

How do I do that?

Mariah






  #4  
Old September 10th 06, 10:41 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Scripting outlook.

That *is* the whole code snippet that will display the number of message in
a given fodler. MAPIFolder variable is assumed to point to an instance of
the Outlook.MAPIFolder object. How you retrieve it is up to your app. Is
that what you are having problems with?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"MN" wrote in message
...
Please give me the whole code.

kindly

Mariah



"Dmitry Streblechenko" skrev i meddelandet
...
MsgBox MAPIFolder.Items.Count

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"MN" wrote in message
...
Hi.

I would like to count the messages in an Outlook folder
programatically.

How do I do that?

Mariah








 




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
Outlook Scripting error on startup? Jo Dude Outlook - General Queries 1 August 23rd 06 03:17 AM
Scripting Outlook Filters [email protected] Outlook - General Queries 1 August 11th 06 05:15 AM
Scripting execution problem in Outlook 2003 Sander Kooij Outlook - Using Forms 4 May 8th 06 12:07 PM
Scripting Outlook in Exchange Environment Mr.Licon Outlook - Installation 1 March 28th 06 08:14 PM
OUTLOOK SCRIPTING BLOCKED? HOW TO ENABLED IT? Jill Outlook - Installation 1 March 20th 06 01:19 PM


All times are GMT +1. The time now is 09:13 AM.


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.