MailItem Flag Disappears

  • Thread starter Thread starter Justin
  • Start date Start date
J

Justin

I'm experiencing something unusual while trying to flag messages. I'm
doing something like (in vb.net):

Dim olPreItems as Outlook.Items
Dim olPreItem as Outlook.Mailitem
Dim MessageCount as Integer = olPreItems.Count

olPreItem = olPreItems.GetFirst
For MessagIndex = 1 to MessageCount
olPreItem.FlagRequest = "Some Text"
olPreItems.GetNext
Next

When I run this with the inbox visible, I see each message being
flagged as it's processed, then the flag disappears just before the
next flag is added.

I've tried including an olPreItem.Save() to no avail. Any ideas?

TIA, J.
Justin
 
Don't forget to save it!
olPreItem.FlagRequest = "Some Text"
olPreItem.Save
olPreItems.GetNext
 
Back
Top