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

How to identify a mail item from a public folder in MS Outlook



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 10th 09, 09:46 PM posted to microsoft.public.outlook.program_vba
JP[_3_]
external usenet poster
 
Posts: 201
Default How to identify a mail item from a public folder in MS Outlook

It's encapsulation, Michael. Besides, it's not going to change the
number of iterations.

--JP


On Nov 10, 3:54*pm, "Michael Bauer [MVP - Outlook]"
wrote:
What an overhead.

--
Best regards
Michael Bauer - MVP Outlook

* : Outlook Categories? Category Manager Is Your Tool
* : VBOffice Reporter for Data Analysis & Reporting
* : http://www.vboffice.net/product.html?pub=6&lang=en

Am Tue, 10 Nov 2009 05:46:54 -0800 (PST) schrieb JP:





To add to what Michael wrote, use a custom function for this. i.e.


Function IsMailItem(Itm As Object) As Boolean
* IsMailItem = (Typeof Itm is Outlook.MailItem)
End Function


Then call the function in your loop:


Dim obj as Object
For Each obj in Items
* If IsMailItem(obj) Then ...


Next obj


--JP


 




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
Failing to Move Item from Public Folder to Local Folder Clifford Outlook and VBA 1 November 9th 07 04:39 PM
identify reply programmatically for mail item BiangL Outlook and VBA 4 October 28th 07 01:34 AM
Public folder Item and Default Contacts David Parkes Outlook - General Queries 1 December 23rd 06 03:32 PM
How to identify item in DistList that's also in Contacts? gxdata Outlook and VBA 3 August 8th 06 06:09 PM
How to read Item from Public Folder and process it DIRECTLY. gata Outlook - General Queries 4 July 7th 06 06:15 AM


All times are GMT +1. The time now is 03:42 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.