If the item is open and being closed then the Inspector it's in is also
closing. Handle the NewInspector event of the Inspectors collection and
handle the Inspector.Close event or the MailItem.Close event for the
MailItem in the Inspector to do what you want.
<landau@skiz.net> wrote in message
news:e01bfc11-ee02-4e4c-a7f8-31f7635993e8@s37g2000prg.googlegroups.com...
> Hi:
> I already have some macros which move emails to predetermined folders
> and these macros are run with a keyboard shortcut. It works fine.
>
> I'd like to write a macro which will do the following: When I close
> an email (and go to the next one), I'd like to move the email I just
> closed to folder xyz. So if i did not flag the current email or move
> it to another folder, I want my macro to move it for me :).
>
> Is this possible?
>
> Thanks
> -Ed