![]() |
Help With Flags
I am trying to create a simple program which goes through inbox
replacing mail with no flag with a blue flag. This is the code i have so far: Sub GetEmailItem() Dim emlSecond As MailItem Dim nsMyNameSpace As NameSpace Dim fdrInbox As MAPIFolder Dim varNummsg As Integer Set nsMyNameSpace = Application.GetNamespace("MAPI") Set fdrInbox = nsMyNameSpace.GetDefaultFolder(olFolderInbox) Dim i As Integer varNummsg = fdrInbox.Items.Count For i = 1 To varNummsg Set emlSecond = fdrInbox.Items.Item(i) If emlSecond.FlagStatus = olNoFlag Then emlSecond.FlagIcon = olBlueFlagIcon End If Set emlSecond = Nothing End Sub But when it runs although the vaue of flagstatus changes, the flags dont change in Outlook. Any Ideas? |
Help With Flags
Actually I have got it to work now. Needed to use .save and .flagicon
together. |
All times are GMT +1. The time now is 12:38 PM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com