I have a folder that has a mix of Post Items and Mail Items.
How can i iterate through all the items in the folder and find the type so
that i can take action based on that type
Ta
Clive
just iterate and use a safe cast or if statement to test the object.
roughly (roughly means the code will not compile as written)
dim oresult
for each oresult in Outlook.items
if oresult.gettype().name == "mailitem"
end if
end if

Signature
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------
>I have a folder that has a mix of Post Items and Mail Items.
> How can i iterate through all the items in the folder and find the type so
> that i can take action based on that type
> Ta
> Clive