![]() |
| If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|||||||
| Tags: flags, help |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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? |
| Ads |
|
#2
|
|||
|
|||
|
Actually I have got it to work now. Needed to use .save and .flagicon
together. |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Is there any way to customize the drop down menu for flags in cont | smoran | Outlook - Using Contacts | 1 | July 13th 06 12:52 AM |
| dynamically set flags according to message age | axtens | Outlook - General Queries | 1 | March 20th 06 02:24 PM |
| set flags according to age of message | axtens | Outlook and VBA | 1 | February 27th 06 04:57 PM |
| Can I name Follow Up Flags for use with Contacts? | Bill K | Outlook - Using Contacts | 0 | February 1st 06 08:50 PM |
| Outlook 2003 - Colour Flags need rename by edit | DrWizard | Outlook - General Queries | 1 | January 24th 06 04:42 PM |