Expression type ... not a collection type
http://support.microsoft.com/default.aspx?scid=kb;en-us;194870
I copied the code to a new project and imported the CDO 1.2 library.
I had to change "Dim oMessage As Message" to "Dim oMessage As MAPI.Message" bacause "Message" was ambiguous.
I also had to add "Dim CdoDefaultFolderInbox As MAPI.CdoDefaultFolderTypes" because it was not declared
But I still have one error that I do not know how to fix.
The code "For Each oMessage In oMsgColl" has an error "Expression is of type 'MAPI.Messages', which is not a collection type."
Any help figuring this out is greatly appreciated.
Thank you.
Charles

