Microsoft outlook mailitem, flagicon not working

Posted on 2006-04-05
Medium Priority
Last Modified: 2008-01-09

Hoping you can help,

I have some code which creates a new outlook email item, i want to be able to set the colour of the flag when its received.
At the moment i use this line of code
.FlagIcon olGreenFlagIcon

What happens is the email sends fine, when the receipient gets the email it does have a flag but its RED! not green.

Has anyone come across this before, let me know if you need the full code.

Question by:noisecouk
  • 3
  • 2
LVL 18

Accepted Solution

meintsi earned 250 total points
ID: 16384091
From the Outlook VBA Reference .....

FlagIcon Property

Setting the FlagIcon property before sending an item will not set the flag on the item when the recipient receives it.

LVL 18

Expert Comment

ID: 16384117
But as a work around, you might create a custom mail form and use the ITEM OPEN event to set the flag on the other end.  But this would  require getting around other security issues.

Author Comment

ID: 16391025
At the moment it does set a flag icon buts its red, not green as i would have thought from the code. I might just have to stop being picky and stick with the red. Anyother ideas??
il close if not.
LVL 18

Expert Comment

ID: 16391405
If these are being sent to the same user, you might have then add a rule to flag them green.

Other than trying the Item Open event, I'm out of other ideas.

Author Comment

ID: 16391707
Ah good idea, thanks for your help

Featured Post

Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
The core idea of this article is to make you acquainted with the best way in which you can export Exchange mailbox to PST format.
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question