![]() |
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
|
|||
|
|||
![]()
Hi ..!
How to count the no of mails in the INBOX? Is there any syntax for shows no of mails in the INBOX? Thanks in advance for your reply. |
Ads |
#2
|
|||
|
|||
![]()
Do you mean getting the count in code? Any folder's Items collection has a
Count property that you can use. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Avadivelan TCS" wrote in message ... Hi ..! How to count the no of mails in the INBOX? Is there any syntax for shows no of mails in the INBOX? Thanks in advance for your reply. |
#3
|
|||
|
|||
![]()
Dear Ken Slovak,
Ya, I need the code. "Ken Slovak - [MVP - Outlook]" wrote: Do you mean getting the count in code? Any folder's Items collection has a Count property that you can use. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Avadivelan TCS" wrote in message ... Hi ..! How to count the no of mails in the INBOX? Is there any syntax for shows no of mails in the INBOX? Thanks in advance for your reply. |
#4
|
|||
|
|||
![]()
This would only run in Outlook VBA, any other platform would need somewhat
different code: Sub InboxItemsCount() Dim oFolder As Outlook.MAPIFolder Dim lngCount As Long Set oFolder = Application.GetNameSpace("MAPI").GetDefaultFolder( olFolderInbox) lngCount = oFolder.Items.Count MsgBox "Count of items in Inbox = " & lngCount End Sub -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Avadivelan TCS" wrote in message ... Dear Ken Slovak, Ya, I need the code. |
#5
|
|||
|
|||
![]()
Dear Ken Slovak,
Thanks a lot, It's working .. Have a nice day. "Ken Slovak - [MVP - Outlook]" wrote: This would only run in Outlook VBA, any other platform would need somewhat different code: Sub InboxItemsCount() Dim oFolder As Outlook.MAPIFolder Dim lngCount As Long Set oFolder = Application.GetNameSpace("MAPI").GetDefaultFolder( olFolderInbox) lngCount = oFolder.Items.Count MsgBox "Count of items in Inbox = " & lngCount End Sub -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Avadivelan TCS" wrote in message ... Dear Ken Slovak, Ya, I need the code. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Count Backward | Barbara B. | Outlook - Calandaring | 1 | September 6th 06 06:59 PM |
Count dates | [email protected] | Outlook and VBA | 7 | August 10th 06 05:13 PM |
Recurring Days That Count Up | Ron Anthony Quinn | Outlook - Calandaring | 0 | May 10th 06 07:37 PM |
How can I count how many contacts I have ? | How can I count how many contacts I have | Outlook - Using Contacts | 1 | May 4th 06 10:24 PM |
count contacts | ems@drg | Outlook - Using Contacts | 1 | February 23rd 06 06:54 PM |