MailItem Flag Disappears

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
 
J

Joe Rossi

Don't forget to save it!
olPreItem.FlagRequest = "Some Text"
olPreItem.Save
olPreItems.GetNext
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top