A ribbon click in Outlook 2007 would not trigger the CommandBarButton click
for Outlook 2003, as surmised. Working with the ribbon is not supported at
all in Outlook VBA code. The only way to work with the ribbon for Outlook
2007 is to use a COM addin.
An alternative might be to just handle the Reply() event for an item rather
than trying to respond to a button click.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"Alan Moseley" wrote in message
...
It certainly works on 2003, but only after you have saved the code and
restarted Outlook (as the button is only initialised at startup). I think
that your problem will be that you are clicking on the ribbon menu buttons
to
reply, and I don't think that this code is designed to pick up the click
event of the ribbon button. I don't have a copy of 2003 so I am unable to
provide any further input on that.
--
Alan Moseley IT Consultancy
http://www.amitc.co.uk
If I have solved your problem, please click Yes below. Thanks.
"DKY" wrote:
Thank you, now the red is gone but I'm not sure why the code doesn't
work. Maybe it's because I'm using Outlook 2007? Its supposed to move
a message from my inbox to the deleted items when I reply to it.
--
DKY