• Subject: Re: How can I declare an object to match all items in my inbox?
  • Author: landau@skiz.net
  • Date: 12 Feb 2008
  • References: 1 2 3 4
Good idea. I set my object to type Object (insteal of Outlook.mailItem) and I don't get type missmatches anymore, but I still can't process all the entries in my inbox since meeting resonses are not of type olMail. For example, at a breakpoint, my myOlMail is pointing to an object (current selection in the explorer) which is of type "olMeetingResponseNegative". Should I just assume that any item in the inbox has a move method and not even check what type is it? This is the code I use in my event handler: Set objMail = myOlExplorer.Selection.Item(1) If (objMail.Class = olMail) Then 'Maybe I should get this of this check. If (objMail.FlagRequest = "") Then If (Not myCurrentMail Is Nothing) Then 'myCurrentMail was set on the last event. myCurrentMail.Move objArchiveFolder End If End If End If Thanks -Ed
12 Feb 2008How can I declare an object to match all items in my inbox?.landau@skiz.net
12 Feb 2008\ Re: How can I declare an object to match all items in my inbox?.JP
12 Feb 2008   \ Re: How can I declare an object to match all items in my inbox?.landau@skiz.net
12 Feb 2008      \ Re: How can I declare an object to match all items in my inbox?.JP
12 Feb 2008         \ Re: How can I declare an object to match all items in my inbox?.landau@skiz.net
13 Feb 2008            |- Re: How can I declare an object to match all items in my inbox?.Ken Slovak - [MVP - O...
13 Feb 2008            \ Re: How can I declare an object to match all items in my inbox?.JP
Contact Us
All times are in (US) Eastern Daylight Time (GMT -4:00)