G
Gary E.
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
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