I've got a macro that worked in Outlook 2003 but acts funny in 2007. I wanted
a way for all messages in a conversation to have the same flag setting - you
select a message that has a flag, and the macro sets all the messages in the
same conversation to the same flag settings. This worked fine in 2003.
In the macro, after I've found all the messages in the conversation, I copy
the following settings from the selected message to each message in the
conversation:
FlagStatus
FlagDueBy
FlagRequest
FlagIcon
ReminderSet
ReminderTime
An example of the "funny" behavior: I have two messages in a conversation. I
set one message with the flag text = "Waiting", the start date to 12/21/06
and the due date to 12/22/06. But when I look at the message in VBA, I don't
find what I expect in the Flag properties. For instance, I expect FlagDueBy
to be 12/22/06, but instead it's null (1/1/4501).
Then, when I run the macro to copy the flag info to the other message in the
conversation, the other message gets the custom "Waiting" text for the flag,
but no Start and Due dates; and the message displayed in the Inbox has a big
red square where it normally displays the Category color, but no Category is
set on the message (I stepped through the macro and discovered that this
occurs when I copy the FlagIcon value from one message to another; the color
of the square changes with the value of FlagIcon, but the icon doesn't
change).
The 2007 VBA Help says that one of the differences between 2003 and 2007 is
that the FlagDueBy, FlagIcon, and FlagStatus properties are "Hidden", but it
doesn't explain what that means. I get no error in Visual Basic when I access
those properties.
I also can't find in Help what property contains the Start By date, nor an
explanation of FlagIcon values.
So how do I, in VBA, get one message to have exactly the same flag
information as another message?
--Gary
Ken Slovak - [MVP - Outlook] - 22 Dec 2006 15:43 GMT
Show the code in your macro.
"Hidden" in this context means that the properties will only show up in the
Object Browser if you right-click in the Object Browser's right hand pane
and select "Show Hidden Members". The intention is to hide the properties
for possible future deprecation but still allow existing code to run without
errors.
The possible values for FlagIcon are in the OlFlagIcon enumeration.
What do you mean by Start By date?
I haven't seen any problems setting any of those properties in either
Outlook 2003 or 2007 in my reminder applications.

Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
> I've got a macro that worked in Outlook 2003 but acts funny in 2007. I
> wanted
[quoted text clipped - 54 lines]
>
> --Gary