I don't know how you'd do that in code.
"ajkessel" <ajkessel@gmail.com> wrote in message
news:2b453112-670a-4052-b81b-abaf3c210cd2@g11g2000yqe.googlegroups.com...
> In Outlook 2007, I had a keyboard shortcut to expand and collapse
> grouped mail. There doesn't seem to be a way to define that in Outlook
> 2010, but I thought I could at least set up a macro. Much of the
> sample VBA code for Outlook 2007 and previous versions doesn't seem to
> work at all. Can anyone suggest a simple script to "expand all" and
> "collapse all"?