General information
Category:
COM/DCOM and OLE Automation
Title:
Troubles with Outlook
Hi All,
Does anyone know why the following gives an error message:
loInboxItems cannot be enumerated
#DEFINE INBOX 6
loOutLook = CREATE( "Outlook.Application" )
loNameSpace = loOutLook.GetNameSpace( "MAPI" )
loInboxItems = loNameSpace.GetDefaultFolder( INBOX ).Items
FOR EACH loInboxItem IN loInboxItems
*** do some thing here
NEXT loInboxItem
I've got round it by using a for next loop rather than a for each. My understanding is however, loInboxItems is a collection and can therefore be interrogated in this way.
Any thoughts?
TIA
Paul
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only