I haven't played with it myself. However, this prints the current view
definition into the debug window:
Debug.Print Application.ActiveExplorer.CurrentFolder.CurrentView.Xml
I'd play with the folder view, print CurrentView.Xml, and see what changes.
If you have found how to define the settings you're looking for, you can
edit the xml property. See also the Apply, and the Save method of the View
object.
Best regards
Michael Bauer
Am Fri, 15 Jan 2010 08:36:01 -0800 schrieb Brad:
> Thansk for your reply Michael.
> I did a lot of searching on the suggestion you gave me on line, and what I
> found was this post. I've done a lot of programming in Access and Excel,
but
> not Outlook and am not catching on to it that well.
> Are there some more hints you could give me?
> Thanks agian,
> Brad
> "Michael Bauer " wrote:
>
>
>
>> See if you can change that via Folder.CurrentView.Xml
>
>> > > Best regards
> > Michael Bauer
> >
> >
>
>
>> Am Fri, 8 Jan 2010 09:06:02 -0800 schrieb Brad:
> >
> >> Thanks for taking the time to read my question.
> >
>>> I'd like to write a macro that when run, changes the sort order of the
> > mail
> >> folder I'm in (Inbox or any sub folder) by From, and then Collapses All
> >> Groups.
> >
>>> I've searched the internet and not found what I'm looking for. Can this
be
> >> done?
> >
>>> Thanks,
> >
>>> Brad
> > .
> >