G
Guest
Hi,
I'm trying to archive old emails based on their SentOn, ReceivedTime, or CreationTime properties. I can get the value for these properties for any item except the items in the "Sent Items" folder. E.g., when I try to get the SentOn time, I get an error.
ItemTime = MyItems(MyItems.Count).SentOn
Error: "Run-time error '-2147168452 (8004cf3c)':
"Method 'SentOn' of object 'MailItem' failed.
In fact, I've found that very few mailitem properties work for me in the Sent Items folder. E.g., "subject", "Class", "MessageClass" work, but To, SenderName, SentOn, ReceivedTime, CreationTime don't.
Once I get the date/time of the message, I'll be moving it to a location in a different PST based on that date/time. Will I be able to move it ok?
I'm trying to archive old emails based on their SentOn, ReceivedTime, or CreationTime properties. I can get the value for these properties for any item except the items in the "Sent Items" folder. E.g., when I try to get the SentOn time, I get an error.
ItemTime = MyItems(MyItems.Count).SentOn
Error: "Run-time error '-2147168452 (8004cf3c)':
"Method 'SentOn' of object 'MailItem' failed.
In fact, I've found that very few mailitem properties work for me in the Sent Items folder. E.g., "subject", "Class", "MessageClass" work, but To, SenderName, SentOn, ReceivedTime, CreationTime don't.
Once I get the date/time of the message, I'll be moving it to a location in a different PST based on that date/time. Will I be able to move it ok?