Set a flag using the FlagDueBy, FlagRequest, and FlagStatus properties.
FYI, there is a newsgroup specifically for general Outlook programming issues "down the hall" at microsoft.public.outlook.program_vba or, via web interface, at
http://www.microsoft.com/office/comm...ok.program_vba
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
"komobu" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> Hi;
>
> I have a program that sends out automatic emails to company personnel
> use OLE. My basic code looks like this:
>
> m = new OLEAutoClient("Outlook.Application")
> item = m.CreateItem(0)
> item.to = 'John.smith
> item.subject = database field
> item.body = 'Reminder'
> item.send()
>
> I would really like to adjust the subject color to red or to set a flag
> based on importance. Please describe what item.commands are needed for
> me to accomplish this. Example code would be most welcome.
>
> Thanks
> Pat
>