C
Carol Chisholm
Method "Display" of object "mailitem" failed -2147221441 (80040107)
I'm working on some code to allow the user to read messages press a
button to file the message according to what they see. After each
message is moves to another subfolder of the Inbox, I want to move
back to the Inbox and display the next selected item.
I am able to get my item but it some do not display unless I step
through the code in debug mode.
Here if the code:
'move to appropriate folder
Set objFolder =
objNameSpace.GetDefaultFolder(olFolderInbox).Folders(strOlFld)
objCurrItem.Move objFolder
'go back to the inbox and display next item
Set objFolder = objNameSpace.GetDefaultFolder(olFolderInbox)
Set objCurrItem = objOLApp.ActiveExplorer.Selection.Item(1)
objCurrItem.Display
Here is the error:
Method "Display" of object "mailitem" failed -2147221441 (80040107)
If I choose Debug and press F8, I get the next item to display. Any
ideas?
I'm working on some code to allow the user to read messages press a
button to file the message according to what they see. After each
message is moves to another subfolder of the Inbox, I want to move
back to the Inbox and display the next selected item.
I am able to get my item but it some do not display unless I step
through the code in debug mode.
Here if the code:
'move to appropriate folder
Set objFolder =
objNameSpace.GetDefaultFolder(olFolderInbox).Folders(strOlFld)
objCurrItem.Move objFolder
'go back to the inbox and display next item
Set objFolder = objNameSpace.GetDefaultFolder(olFolderInbox)
Set objCurrItem = objOLApp.ActiveExplorer.Selection.Item(1)
objCurrItem.Display
Here is the error:
Method "Display" of object "mailitem" failed -2147221441 (80040107)
If I choose Debug and press F8, I get the next item to display. Any
ideas?