Perry Garrod
New Member
- Outlook version
- Outlook 2013 32 bit
- Email Account
- Outlook.com (as MS Exchange)
Hi
I'm developing a solution in ThisOutlookSession code to work with Tasks, and all seems to be ok until the objExplorer_SelectionChange () returns an entry appearing in the "My Tasks" which is not a TaskItem, i.e. task, appearing in Tasks list, but is infact an entry appearing in the "To-Do List" (Outlook 2013). Examples are: Contact Groups, Mail items flagged.
Consequently, when I attempt to "Set tsk = objExplorer.Selection(1)" the VBA errors as the item is not infact a Task.
How can I avoid this occuring/determine if the Selection is in fact a Task and not some other type/category?
Thanks
Perry
I'm developing a solution in ThisOutlookSession code to work with Tasks, and all seems to be ok until the objExplorer_SelectionChange () returns an entry appearing in the "My Tasks" which is not a TaskItem, i.e. task, appearing in Tasks list, but is infact an entry appearing in the "To-Do List" (Outlook 2013). Examples are: Contact Groups, Mail items flagged.
Consequently, when I attempt to "Set tsk = objExplorer.Selection(1)" the VBA errors as the item is not infact a Task.
How can I avoid this occuring/determine if the Selection is in fact a Task and not some other type/category?
Thanks
Perry